35 const label liquidIndex
38 const word modelType(
dict.lookup(
"model"));
42 dictionaryConstructorTable::iterator cstrIter =
43 dictionaryConstructorTablePtr_->find(modelType);
45 if (cstrIter == dictionaryConstructorTablePtr_->end())
48 <<
"Unknown cavitation model "
49 << modelType <<
nl <<
nl
50 <<
"Valid cavitationModels are : " <<
endl
51 << dictionaryConstructorTablePtr_->sortedToc()
59 dict.optionalTypeDict(modelType),
static autoPtr< cavitationModel > New(const dictionary &dict, const compressibleTwoPhases &phases, const label liquidIndex=-1)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.