43 void Foam::rotatedBoxToFace::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[facei] - boxPoints[boxFaces[i][0]]) & boxFaceNormals[i])
97 addOrDelete(
set, facei, 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 faces with center within rotated box " <<
endl;
181 Info<<
" Removing faces 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.
rotatedBoxToFace(const polyMesh &mesh, const vector &origin, const vector &i, const vector &j, const vector &k)
Construct from components.
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.
virtual ~rotatedBoxToFace()
Destructor.
Base class of a source for a topoSet.
vectorField pointField
pointField is a vectorField.
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
setAction
Enumeration defining the valid actions.
List< label > labelList
A List of labels.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
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.
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.