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];
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Face selection method for createBaffles.
virtual ~faceSelection()
Destructor.
virtual void select(const label, labelList &, boolList &) const =0
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
const labelIOList & zoneID
List< label > labelList
A List of labels.
List< bool > boolList
A List of bools.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.