26 #include "turbulentDispersionModel.H" 27 #include "phasePair.H" 34 const dictionary& dict,
38 word turbulentDispersionModelType(dict.lookup(
"type"));
40 Info<<
"Selecting turbulentDispersionModel for " 41 << pair <<
": " << turbulentDispersionModelType <<
endl;
43 dictionaryConstructorTable::iterator cstrIter =
44 dictionaryConstructorTablePtr_->find(turbulentDispersionModelType);
46 if (cstrIter == dictionaryConstructorTablePtr_->end())
49 <<
"Unknown turbulentDispersionModelType type " 50 << turbulentDispersionModelType << endl << endl
51 <<
"Valid turbulentDispersionModel types are : " << endl
52 << dictionaryConstructorTablePtr_->sortedToc()
56 return cstrIter()(
dict, pair);
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< turbulentDispersionModel > New(const dictionary &dict, const phasePair &pair)