33 const dictionary& dict,
34 const phaseInterface& interface,
36 const bool registerObject
39 const dictionary& modelDict =
40 outer ? interface.fluid().modelSubDict<
dragModel>(
dict) : dict;
42 const word dragModelType(modelDict.lookup(
"type"));
44 Info<<
"Selecting dragModel for " 45 << interface.name() <<
": " << dragModelType <<
endl;
47 dictionaryConstructorTable::iterator cstrIter =
48 dictionaryConstructorTablePtr_->find(dragModelType);
50 if (cstrIter == dictionaryConstructorTablePtr_->end())
53 <<
"Unknown dragModelType type " 54 << dragModelType << endl << endl
55 <<
"Valid dragModel types are : " << endl
56 << dictionaryConstructorTablePtr_->sortedToc()
66 const dictionary& dict,
67 const phaseInterface& interface
70 return autoPtr<blendedDragModel>(
new blendedDragModel(dict, interface));
static autoPtr< blendedDragModel > New(const dictionary &dict, const phaseInterface &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.
dragModel(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
static autoPtr< dragModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true, const bool registerObject=true)
bool & registerObject()
Register object created from this IOobject with registry if true.