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]
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
virtual void select(const label, labelList &, boolList &) const =0
Select faces from faceZone.
virtual ~faceZoneSelection()
Destructor.
virtual void select(const label zoneID, labelList &, boolList &) const
Apply this selector.
faceZoneSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
List< label > labelList
A List of labels.
List< bool > boolList
A List of bools.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.