43 void Foam::rotatedBoxToCell::combine(topoSet&
set,
const bool add)
const 55 origin_ + k_ + i_ + j_,
60 const labelList boxVerts({0, 1, 2, 3, 4, 5, 6, 7});
65 const faceList boxFaces(cellShape(hex, boxVerts).faces());
71 boxFaceNormals[i] = boxFaces[i].area(boxPoints);
86 ((ctrs[celli] - boxPoints[boxFaces[i][0]]) & boxFaceNormals[i])
97 addOrDelete(
set, celli, add);
134 if (dict.
found(
"box"))
144 origin_ = (R & (bb.min() -
c)) +
c;
145 i_ = R & (bbPoints[1] - bb.min());
146 j_ = R & (bbPoints[3] - bb.min());
147 k_ = R & (bbPoints[4] - bb.min());
175 Info<<
" Adding cells with center within rotated box " <<
endl;
181 Info<<
" Removing cells with center within rotated box " <<
endl;
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of the points at its extremities.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from unit vector n1 to n2.
const dimensionedScalar c
Speed of light in a vacuum.
Macros for easy insertion into run-time selection tables.
Base class of a source for a topoSet.
vectorField pointField
pointField is a vectorField.
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
setAction
Enumeration defining the valid actions.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
General set of labels of mesh quantity (points, cells, faces).
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define R(A, B, C, D, E, F, K, M)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
virtual ~rotatedBoxToCell()
Destructor.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
rotatedBoxToCell(const polyMesh &mesh, const vector &origin, const vector &i, const vector &j, const vector &k)
Construct from components.