35 namespace zoneGenerators
73 cellFacesNames.lookupOrDefault
93 boolList selectedFaces(mesh_.nFaces(),
false);
94 boolList flipMap(mesh_.nFaces(),
false);
98 zoneSet zs(zoneGenerators_[i].generate());
117 mesh_.cells()[zoneCells[zci]];
127 case cellFaces::inner:
131 const label nInt = mesh_.nInternalFaces();
132 const labelList& own = mesh_.faceOwner();
133 const labelList& nei = mesh_.faceNeighbour();
137 for (
label facei = 0; facei < nInt; facei++)
145 selectedFaces[facei] =
true;
151 boolList neiInSet(mesh_.nFaces()-nInt,
false);
162 neiInSet[facei-nInt] =
183 && neiInSet[facei-nInt]
186 selectedFaces[facei] =
true;
196 case cellFaces::outerInternal:
200 const label nInt = mesh_.nInternalFaces();
201 const labelList& own = mesh_.faceOwner();
202 const labelList& nei = mesh_.faceNeighbour();
206 for (
label facei = 0; facei < nInt; facei++)
213 selectedFaces[facei] =
true;
214 flipMap[facei] =
false;
216 else if (!inOwn && inNei)
218 selectedFaces[facei] =
true;
219 flipMap[facei] =
true;
225 boolList neiInSet(mesh_.nFaces()-nInt,
false);
236 neiInSet[facei-nInt] =
243 cellFaces_ != cellFaces::outerInternal
251 selectedFaces[facei] =
true;
272 const bool inNei = neiInSet[facei-nInt];
276 selectedFaces[facei] =
true;
277 flipMap[facei] =
false;
279 else if (!inOwn && inNei)
281 selectedFaces[facei] =
true;
282 flipMap[facei] =
true;
300 const Foam::face&
f = mesh_.faces()[zoneFaces[zfi]];
304 selectedFaces[
f[fp]] =
true;
310 moveUpdate_ = zoneGenerators_.moveUpdate();
312 const labelList faceIndices(indices(selectedFaces));
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
bool found(const Key &) const
Return true if hashedEntry is found in table.
Initialise the NamedEnum HashTable from the static list of names.
const word & name() const
Return name.
A collection of cell labels.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Named list of face indices representing a sub-set of the mesh faces.
A face is a list of labels corresponding to mesh vertices.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
label start() const
Return start label of this patch in the polyMesh face list.
A class for handling words, derived from string.
Abstract base class for all zoneGenerators, providing runtime selection.
A zoneGenerator which converts the point, cell and face zones from a list of zoneGenerators into a fa...
face(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual zoneSet generate() const
Generate and return the zoneSet.
cellFaces
Enumeration defining the valid options.
virtual ~face()
Destructor.
static const NamedEnum< cellFaces, 4 > cellFacesNames
Names of the valid options.
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.
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)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const fvPatchList & patches
defineTypeNameAndDebug(cylinderHeadPoints, 0)
addToRunTimeSelectionTable(zoneGenerator, cylinderHeadPoints, dictionary)
void outer(LagrangianPatchField< typename outerProduct< Type1, Type2 >::type > &f, const LagrangianPatchField< Type1 > &f1, const LagrangianPatchField< Type2 > &f2)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
List< bool > boolList
Bool container classes.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.