44 const dictionary&
dict
50 flip_(
dict.lookupOrDefault(
"flip", false))
66 const dictionary&
dict
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.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
faceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~faceSelection()
Destructor.
virtual void select(const label, labelList &, boolList &) const =0
static autoPtr< faceSelection > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected faceSelection.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
List< label > labelList
A List of labels.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
List< bool > boolList
Bool container classes.
defineTypeNameAndDebug(combustionModel, 0)