35 const dictionary& viscosityProperties,
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 mixtureViscosityModel type " 51 << modelType <<
nl <<
nl 52 <<
"Valid mixtureViscosityModels are : " << endl
53 << dictionaryConstructorTablePtr_->sortedToc()
57 return autoPtr<mixtureViscosityModel>
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
GeometricField< vector, fvPatchField, volMesh > volVectorField
static autoPtr< mixtureViscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
word name(const complex &)
Return a string representation of a complex.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField