46 void Foam::shapeToCell::combine(topoSet& set,
const bool add)
const
48 if (shape_ ==
"splitHex")
54 if (hexMatcher().
isA(superCell.faces()))
103 shape_(
dict.lookup(
"shape"))
129 Info<<
" Adding all cells of shape " << shape_ <<
" ..." <<
endl;
135 Info<<
" Removing all cells of shape " << shape_ <<
" ..." <<
endl;
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
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....
Mesh consisting of general polyhedral cells.
const cellShapeList & cellShapes() const
Return cell shapes.
A topoSetSource to select cells based on cell shape.
static scalar featureCos
Cos of feature angle for polyHedral to be splitHex.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
virtual ~shapeToCell()
Destructor.
shapeToCell(const polyMesh &mesh, const word &shape)
Construct from components.
Base class of a source for a topoSet.
void addOrDelete(topoSet &set, const label celli, const bool) const
Add (if bool) celli to set or delete celli from set.
setAction
Enumeration defining the valid actions.
General set of labels of mesh quantity (points, cells, faces).
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const cellShapeList & cellShapes
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
scalar degToRad(const scalar deg)
Convert degrees to radians.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
defineTypeNameAndDebug(combustionModel, 0)
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
dimensionedScalar cos(const dimensionedScalar &ds)