33 const dictionary& dict,
34 const phaseInterface& interface,
38 const dictionary& modelDict =
39 outer ? interface.fluid().modelSubDict<
liftModel>(
dict) : dict;
41 const word liftModelType(modelDict.lookup(
"type"));
43 Info<<
"Selecting liftModel for " 44 << interface.name() <<
": " << liftModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(liftModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown liftModelType type " 53 << liftModelType << endl << endl
54 <<
"Valid liftModel types are : " << endl
55 << dictionaryConstructorTablePtr_->sortedToc()
59 return cstrIter()(modelDict, interface);
65 const dictionary& dict,
66 const phaseInterface& interface
69 return autoPtr<blendedLiftModel>(
new blendedLiftModel(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.
liftModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
static autoPtr< blendedLiftModel > New(const dictionary &dict, const phaseInterface &interface)
static autoPtr< liftModel > New(const dictionary &dict, const phaseInterface &interface, const bool outer=true)