44 const dictionary& dict
50 flip_(dict.lookupOrDefault(
"flip", false))
66 const dictionary& dict
69 const word sampleType(dict.lookup(
"type"));
71 dictionaryConstructorTable::iterator cstrIter =
72 dictionaryConstructorTablePtr_->find(sampleType);
74 if (cstrIter == dictionaryConstructorTablePtr_->end())
77 <<
"Unknown faceSelection type " 78 << sampleType <<
nl <<
nl 79 <<
"Valid faceSelection types : " <<
endl 80 << dictionaryConstructorTablePtr_->sortedToc()
84 return autoPtr<faceSelection>(cstrIter()(
name,
mesh,
dict));
97 forAll(faceToZoneID, facei)
99 if (faceToZoneID[facei] == zoneID)
101 faceToFlip[facei] = !faceToFlip[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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual ~faceSelection()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< bool > boolList
Bool container classes.
faceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
List< label > labelList
A List of labels.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
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
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...