34 const incompressibleTwoPhaseInteractingMixture& mixture
46 ).lookup(
"viscosityModel")
49 Info<<
"Selecting mixture viscosity model " << modelType <<
endl;
51 dictionaryConstructorTable::iterator cstrIter =
52 dictionaryConstructorTablePtr_->find(modelType);
54 if (cstrIter == dictionaryConstructorTablePtr_->end())
57 <<
"Unknown mixtureViscosityModel type " 58 << modelType <<
nl <<
nl 59 <<
"Valid mixtureViscosityModels are : " << endl
60 << dictionaryConstructorTablePtr_->sortedToc()
64 return autoPtr<mixtureViscosityModel>(cstrIter()(mixture));
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static IOobject findModelDict(const objectRegistry &obr, const word &group, bool registerObject=false)
static autoPtr< mixtureViscosityModel > New(const incompressibleTwoPhaseInteractingMixture &mixture)
Return a reference to the selected viscosity model.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.