34 const dictionary& dict,
35 const phaseInterface& interface,
39 const dictionary& modelDict =
44 const word turbulentDispersionModelType(modelDict.lookup(
"type"));
46 Info<<
"Selecting turbulentDispersionModel for " 47 << interface.name() <<
": " << turbulentDispersionModelType <<
endl;
49 dictionaryConstructorTable::iterator cstrIter =
50 dictionaryConstructorTablePtr_->find(turbulentDispersionModelType);
52 if (cstrIter == dictionaryConstructorTablePtr_->end())
55 <<
"Unknown turbulentDispersionModelType type " 56 << turbulentDispersionModelType << endl << endl
57 <<
"Valid turbulentDispersionModel types are : " << endl
58 << dictionaryConstructorTablePtr_->sortedToc()
62 return cstrIter()(modelDict, interface);
69 const dictionary& dict,
70 const phaseInterface& interface
74 autoPtr<blendedTurbulentDispersionModel>
76 new blendedTurbulentDispersionModel(dict, interface)
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< blendedTurbulentDispersionModel > New(const dictionary &dict, const phaseInterface &interface)
turbulentDispersionModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
static autoPtr< turbulentDispersionModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...