Go to the documentation of this file.
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));
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Generic GeometricField class.
word name(const complex &)
Return a string representation of a complex.