41 viscosityModel::findModelDict(mesh, group)
42 ).lookupBackwardsCompatible
51 Info<<
"Selecting viscosity model " << modelType <<
endl;
53 dictionaryConstructorTable::iterator cstrIter =
54 dictionaryConstructorTablePtr_->find(modelType);
56 if (cstrIter == dictionaryConstructorTablePtr_->end())
59 <<
"Unknown viscosity model " << modelType <<
nl <<
nl 60 <<
"Valid viscosity models are : " << endl
61 << dictionaryConstructorTablePtr_->sortedToc()
const char *const group
Group name for atomic constants.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from string.
static autoPtr< viscosityModel > New(const fvMesh &mesh, const word &group=word::null)
Return a reference to the selected viscosity model.
Mesh data needed to do the Finite Volume discretisation.