38 viscosityProperties.
lookup(
"viscosityModel")
41 Info<<
"Selecting generalised Newtonian model " << modelType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(modelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown generalisedNewtonianViscosityModel type " 50 << modelType <<
nl <<
nl 51 <<
"Valid generalisedNewtonianViscosityModels are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
58 cstrIter()(viscosityProperties)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< generalisedNewtonianViscosityModel > New(const dictionary &viscosityProperties)
Return a reference to the selected viscosity model.
A class for handling words, derived from string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.