46 void Foam::shapeToCell::combine(topoSet& set,
const bool add)
const
48 if (shape_ ==
"splitHex")
54 if (hexMatcher().
isA(superCell.faces()))
99 const dictionary&
dict
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.
const cellShapeList & cellShapes() const
Return cell shapes.
static scalar featureCos
Cos of feature angle for polyHedral to be splitHex.
virtual ~shapeToCell()
Destructor.
virtual void applyToSet(const topoSetSource::setAction action, topoSet &) const
shapeToCell(const polyMesh &mesh, const word &shape)
Construct from components.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const cellShapeList & cellShapes
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
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)
void add(GeometricField< typename typeOfSum< Type1, Type2 >::type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type1, GeoMesh, PrimitiveField2 > &gf1, const GeometricField< Type2, GeoMesh, PrimitiveField3 > &gf2)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
treeBoundBox combine(const treeBoundBox &a, const treeBoundBox &b)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
dimensionedScalar cos(const dimensionedScalar &ds)