41 viscosityProperties.
lookup(
"viscosityModel")
44 Info<<
"Selecting generalised Newtonian model " << modelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(modelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown generalisedNewtonianViscosityModel type "
53 << modelType <<
nl <<
nl
54 <<
"Valid generalisedNewtonianViscosityModels are : " <<
endl
55 << dictionaryConstructorTablePtr_->sortedToc()
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
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 FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.