34 namespace faceSelections
47 const dictionary&
dict 50 faceSelection(name, mesh, dict),
51 zoneName_(dict_.
lookup(
"zoneName"))
75 <<
"Cannot find faceZone " << zoneName_ <<
nl <<
"Valid zones are " 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]
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const fvMesh & mesh_
Reference to mesh.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void select(const label zoneID, labelList &, boolList &) const
Apply this selector.
Macros for easy insertion into run-time selection tables.
List< bool > boolList
Bool container classes.
label findZoneID(const word &zoneName) const
Find zone index given a name.
stressControl lookup("compactNormalStress") >> compactNormalStress
wordList names() const
Return a list of zone names.
List< label > labelList
A List of labels.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
faceZoneSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
virtual void select(const label, labelList &, boolList &) const =0
virtual ~faceZoneSelection()
Destructor.
const faceZoneMesh & faceZones() const
Return face zone mesh.