62 rotatedBoxToCell::typeName,
63 "\n Usage: rotatedBoxToCell (originx originy originz)"
64 " (ix iy iz) (jx jy jz) (kx ky kz)\n\n"
65 " Select all cells with cellCentre within parallelopiped\n\n"
71void Foam::rotatedBoxToCell::combine(topoSet& set,
const bool add)
const
77 boxPoints[2] += i_ + j_;
80 boxPoints[5] += k_ + i_;
81 boxPoints[6] += k_ + i_ + j_;
82 boxPoints[7] += k_ + j_;
91 boxFaceNormals[i] = boxFaces[i].areaNormal(boxPoints);
108 const face&
f = boxFaces[i];
110 if (((ctrs[celli] - boxPoints[
f[0]]) & boxFaceNormals[i]) > 0)
180 Info<<
" Adding cells with centre within rotated box"
190 Info<<
" Removing cells with centre within rotated box"
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
static const Foam::faceList & modelFaces()
Return the model faces.
Mesh consisting of general polyhedral cells.
A topoSetCellSource to select cells based on cell centres inside a given parallopiped (i....
rotatedBoxToCell(const polyMesh &mesh, const vector &origin, const vector &i, const vector &j, const vector &k)
Construct from components.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
topoSetCellSource(const polyMesh &mesh)
Construct from mesh.
Class with constructor to add usage string to table.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label id, const bool add) const
Add or delete id from set. Add when 'add' is true.
setAction
Enumeration defining various actions.
@ SUBTRACT
Subtract elements from current set.
@ ADD
Add elements to current set.
@ NEW
Create a new set and ADD elements to it.
bool verbose_
Output verbosity (default: true).
const polyMesh & mesh() const noexcept
Reference to the mesh.
const polyMesh & mesh_
Reference to the mesh.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
messageStream Info
Information stream (stdout output on master, null elsewhere).
List< face > faceList
List of faces.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void add(DimensionedField< scalar, GeoMesh > &result, const dimensioned< scalar > &dt1, const DimensionedField< scalar, GeoMesh > &f2)
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
vectorField pointField
pointField is a vectorField.
dict add("bounds", meshBb)
#define forAll(list, i)
Loop across all elements in list.