40 const word modelType(viscosityProperties.
lookup(
"transportModel"));
42 Info<<
"Selecting incompressible transport model " << modelType <<
endl;
44 dictionaryConstructorTable::iterator cstrIter =
45 dictionaryConstructorTablePtr_->find(modelType);
47 if (cstrIter == dictionaryConstructorTablePtr_->end())
50 <<
"Unknown viscosityModel type " 51 << modelType <<
nl <<
nl 52 <<
"Valid viscosityModels are : " << endl
53 << dictionaryConstructorTablePtr_->sortedToc()
58 (cstrIter()(
name, viscosityProperties,
U,
phi));
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.
word name(const complex &)
Return a string representation of a complex.
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.