39 const word modelType(viscosityProperties.
lookup(
"viscosityModel"));
42 <<
"Selecting generalised Newtonian model " << modelType <<
endl;
44 dictionaryConstructorTable::iterator cstrIter =
45 dictionaryConstructorTablePtr_->find(modelType);
47 if (cstrIter == dictionaryConstructorTablePtr_->end())
50 <<
"Unknown generalisedNewtonianViscosityModel type "
51 << modelType <<
nl <<
nl
52 <<
"Valid generalisedNewtonianViscosityModels are : " <<
endl
53 << dictionaryConstructorTablePtr_->sortedToc()
63 return cstrIter()(viscosityProperties,
viscosity,
U);
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & optionalTypeDict(const word &typeName) const
Find and return an optional type sub-dictionary.
static autoPtr< generalisedNewtonianViscosityModel > New(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
Return a reference to the selected viscosity model.
Enables the printing of a dictionary and subsequently looked-up defaulted entries.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
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.