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()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
word group() const
Return group (extension part of name)
ITstream & lookupBackwardsCompatible(const wordList &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream, trying a list of keywords.
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.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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.