Go to the documentation of this file.
38 const dictionary&
dict,
43 const word modelType(
dict.get<word>(
"transportModel"));
45 Info<<
"Selecting incompressible transport model " << modelType <<
endl;
47 auto* ctorPtr = dictionaryConstructorTable(modelType);
56 *dictionaryConstructorTablePtr_
60 return autoPtr<viscosityModel>(ctorPtr(
name,
dict,
U,
phi));
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.