Go to the documentation of this file.
34 namespace faceSelections
47 const dictionary&
dict
51 zoneName_(dict_.
lookup(
"zoneName"))
70 label readID = mesh_.faceZones().findZoneID(zoneName_);
75 <<
"Cannot find faceZone " << zoneName_ <<
nl <<
"Valid zones are "
76 << mesh_.faceZones().names()
80 const faceZone& fZone = mesh_.faceZones()[readID];
84 label faceI = fZone[i];
86 if (faceToZoneID[faceI] == -1)
88 faceToZoneID[faceI] = zoneID;
89 faceToFlip[faceI] = fZone.flipMap()[i];
91 else if (faceToZoneID[faceI] != zoneID)
94 <<
"Face " << faceI <<
" already in faceZone "
95 << faceToZoneID[faceI]
virtual void select(const label zoneID, labelList &, boolList &) const
Apply this selector.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual ~faceZoneSelection()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Macros for easy insertion into run-time selection tables.
List< bool > boolList
Bool container classes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void select(const label, labelList &, boolList &) const =0
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
faceZoneSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
stressControl lookup("compactNormalStress") >> compactNormalStress