Go to the documentation of this file.
47 const dictionary&
dict
53 flip_(
dict.getOrDefault(
"flip", false))
69 const dictionary&
dict
72 const word modelType(
dict.
get<word>(
"type"));
74 auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
76 if (!cstrIter.found())
83 *dictionaryConstructorTablePtr_
87 return autoPtr<faceSelection>(cstrIter()(
name,
mesh,
dict));
100 forAll(faceToZoneID, facei)
102 if (faceToZoneID[facei] ==
zoneID)
104 faceToFlip[facei] = !faceToFlip[facei];
List< label > labelList
A List of labels.
virtual ~faceSelection()
Destructor.
static autoPtr< faceSelection > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected faceSelection.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
List< bool > boolList
A List of bools.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
#define forAll(list, i)
Loop across all elements in list.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
faceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
word name(const complex &c)
Return string representation of complex.
const labelIOList & zoneID
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void select(const label, labelList &, boolList &) const =0
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
defineTypeNameAndDebug(combustionModel, 0)