38 viscosityProperties.
lookup(
"viscosityModel")
41 Info<<
"Selecting generalized Newtonian model " << modelType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(modelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown generalizedNewtonianViscosityModel type " 50 << modelType <<
nl <<
nl 51 <<
"Valid generalizedNewtonianViscosityModels are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
58 cstrIter()(viscosityProperties)
static autoPtr< generalizedNewtonianViscosityModel > New(const dictionary &viscosityProperties)
Return a reference to the selected viscosity model.
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.
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.