45 const word modelType(
dict.lookup(
"viscosityModel"));
47 Info<<
"Selecting mixture viscosity model " << modelType <<
endl;
49 dictionaryConstructorTable::iterator cstrIter =
50 dictionaryConstructorTablePtr_->find(modelType);
52 if (cstrIter == dictionaryConstructorTablePtr_->end())
55 <<
"Unknown mixtureViscosityModel type "
56 << modelType <<
nl <<
nl
57 <<
"Valid mixtureViscosityModels are : " <<
endl
58 << dictionaryConstructorTablePtr_->sortedToc()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Class to represent a mixture of two constant density phases.
static autoPtr< mixtureViscosityModel > New(const incompressibleDriftFluxMixture &mixture)
Return a reference to the selected viscosity model.
static IOobject findModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
Find the physicalProperties dictionary and return the IOobject.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.