26 #include "diameterModel.H" 32 const dictionary& dict,
33 const phaseModel& phase
36 word diameterModelType
38 dict.lookup(
"diameterModel")
41 Info <<
"Selecting diameterModel for phase " 44 << diameterModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(diameterModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown diameterModelType type " 53 << diameterModelType << endl << endl
54 <<
"Valid diameterModel types are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
59 return cstrIter()(dict.subDict(diameterModelType +
"Coeffs"),
phase);
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 autoPtr< diameterModel > New(const dictionary &dict, const phaseModel &phase)
const phaseModel & phase() const
Return the phase.