39 const word modelType(
dict.lookup(
"viscosityModel"));
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(modelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown viscosity model " << modelType <<
nl <<
nl
50 <<
"Valid viscosity models are : " <<
endl
51 << dictionaryConstructorTablePtr_->sortedToc()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
word group() const
Return group (extension part of name)
Mesh data needed to do the Finite Volume discretisation.
static IOobject findModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
Find the physicalProperties dictionary and return the IOobject.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
static autoPtr< viscosityModel > New(const fvMesh &mesh, const word &group=word::null)
Return a reference to the selected viscosity model.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const char *const group
Group name for atomic constants.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & indentOrNl(Ostream &os)
Indent stream or add newline if indent level == 0.