37 const word modelType(
dict.lookup(
"model"));
39 Info<<
"Selecting cavitation model " << modelType <<
endl;
41 dictionaryConstructorTable::iterator cstrIter =
42 dictionaryConstructorTablePtr_->find(modelType);
44 if (cstrIter == dictionaryConstructorTablePtr_->end())
47 <<
"Unknown cavitation model "
48 << modelType <<
nl <<
nl
49 <<
"Valid cavitationModels are : " <<
endl
50 << dictionaryConstructorTablePtr_->sortedToc()
56 cstrIter()(
dict.optionalSubDict(modelType +
"Coeffs"), phases)
static autoPtr< cavitationModel > New(const dictionary &dict, const compressibleTwoPhases &phases)
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.