Go to the documentation of this file.
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];
virtual ~faceSelection()
Destructor.
static autoPtr< faceSelection > New(const word &name, const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected faceSelection.
List< label > labelList
A List of labels.
#define forAll(list, i)
Loop across all elements in list.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
faceSelection(const word &name, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
List< bool > boolList
Bool container classes.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.