37 namespace faceSelections
50 const dictionary&
dict 54 zoneName_(dict_.
get<word>(
"zoneName"))
73 label readID = mesh_.faceZones().findZoneID(zoneName_);
78 <<
"Cannot find faceZone " << zoneName_ <<
nl <<
"Valid zones are " 79 << mesh_.faceZones().names()
83 const faceZone& fZone = mesh_.faceZones()[readID];
87 label facei = fZone[i];
89 if (faceToZoneID[facei] == -1)
91 faceToZoneID[facei] = zoneID;
92 faceToFlip[facei] = fZone.flipMap()[i];
94 else if (faceToZoneID[facei] != zoneID)
97 <<
"Face " << facei <<
" already in faceZone " 98 << faceToZoneID[facei]
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
faceZoneSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
defineTypeNameAndDebug(combustionModel, 0)
virtual void select(const label, labelList &, boolList &) const =0
virtual ~faceZoneSelection()
Destructor.
List< label > labelList
A List of labels.
virtual void select(const label zoneID, labelList &, boolList &) const
Apply this selector.
List< bool > boolList
A List of bools.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)