47 const dictionary&
dict 53 flip_(
dict.getOrDefault(
"flip", false))
69 const dictionary&
dict 72 const word modelType(
dict.
get<word>(
"type"));
74 auto* ctorPtr = dictionaryConstructorTable(modelType);
83 *dictionaryConstructorTablePtr_
87 return autoPtr<faceSelection>(ctorPtr(
name,
mesh,
dict));
100 forAll(faceToZoneID, facei)
102 if (faceToZoneID[facei] == zoneID)
104 faceToFlip[facei] = !faceToFlip[facei];
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~faceSelection()
Destructor.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
#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.
faceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
static autoPtr< faceSelection > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected faceSelection.
virtual void select(const label, labelList &, boolList &) const =0
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
List< label > labelList
A List of labels.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
List< bool > boolList
A List of bools.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...