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()
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.
static autoPtr< generalisedNewtonianViscosityModel > New(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
Return a reference to the selected viscosity model.
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 & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
Ostream & indent(Ostream &os)
Indent stream.