34 namespace zoneGenerators
71 boolList selectedCells(mesh_.nCells(),
false);
75 zoneSet zs(zoneGenerators_[i].generate());
83 const labelList& pCells = mesh_.pointCells()[zonePoints[
pi]];
87 selectedCells[pCells[pci]] =
true;
98 selectedCells[zoneCells[zci]] =
true;
106 const labelList& own = mesh_.faceOwner();
107 const labelList& nei = mesh_.faceNeighbour();
111 const label facei = zoneFaces[zfi];
113 selectedCells[own[facei]] =
true;
114 if (mesh_.isInternalFace(facei))
116 selectedCells[nei[facei]] =
true;
122 moveUpdate_ = zoneGenerators_.moveUpdate();
129 indices(selectedCells),
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
const word & name() const
Return name.
Named list of cell indices representing a sub-set of the mesh.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh consisting of general polyhedral cells.
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
A zoneGenerator which converts the cell, face and point zones from a list of zoneGenerators into a ce...
virtual zoneSet generate() const
Generate and return the zoneSet.
cell(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~cell()
Destructor.
Zone container returned by zoneGenerator::generate.
const faceZone & fZone() const
Return a reference to the faceZone if allocated.
const cellZone & cZone() const
Return a reference to the cellZone if allocated.
bool pValid() const
Return true if the pointZone is allocated.
const pointZone & pZone() const
Return a reference to the pointZone if allocated.
bool fValid() const
Return true if the faceZone is allocated.
bool cValid() const
Return true if the cellZone is allocated.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
defineTypeNameAndDebug(cylinderHeadPoints, 0)
addToRunTimeSelectionTable(zoneGenerator, cylinderHeadPoints, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.