48 void Foam::shapeToCell::combine(topoSet&
set,
const bool add)
const 50 if (type_ ==
"splitHex")
52 for (
label celli = 0; celli < mesh_.nCells(); celli++)
54 cellFeatures superCell(mesh_, featureCos, celli);
56 if (hexMatcher().
isA(superCell.faces()))
58 addOrDelete(
set, celli, add);
70 if (cellShapes[celli].model() == wantedModel)
72 addOrDelete(
set, celli, add);
105 type_(dict.
lookup(
"type"))
131 Info<<
" Adding all cells of type " << type_ <<
" ..." <<
endl;
137 Info<<
" Removing all cells of type " << type_ <<
" ..." <<
endl;
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
#define forAll(list, i)
Loop across all elements in list.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const cellModel * lookup(const word &)
Look up a model by name and return a pointer to the model or nullptr.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Macros for easy insertion into run-time selection tables.
scalar degToRad(const scalar deg)
Conversion from degrees to radians.
Base class of a source for a topoSet.
virtual ~shapeToCell()
Destructor.
List< cellShape > cellShapeList
List of cellShapes and PtrList of List of cellShape.
dimensionedScalar cos(const dimensionedScalar &ds)
A class for handling words, derived from string.
setAction
Enumeration defining the valid actions.
static scalar featureCos
Cos of feature angle for polyHedral to be splitHex.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
General set of labels of mesh quantity (points, cells, faces).
shapeToCell(const polyMesh &mesh, const word &type)
Construct from components.
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.