32 const dictionary& dict,
33 const phaseInterface& interface
36 const dictionary& modelDict =
39 const word phaseTransferModelType(modelDict.lookup(
"type"));
41 Info<<
"Selecting phaseTransferModel for " 42 << interface.name() <<
": " << phaseTransferModelType <<
endl;
44 dictionaryConstructorTable::iterator cstrIter =
45 dictionaryConstructorTablePtr_->find(phaseTransferModelType);
47 if (cstrIter == dictionaryConstructorTablePtr_->end())
50 <<
"Unknown phaseTransferModelType type " 51 << phaseTransferModelType << endl << endl
52 <<
"Valid phaseTransferModel types are : " << endl
53 << dictionaryConstructorTablePtr_->sortedToc()
57 return cstrIter()(modelDict, interface);
64 const dictionary& dict,
65 const phaseInterface& interface
68 return autoPtr<blendedPhaseTransferModel>
70 new blendedPhaseTransferModel(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< phaseTransferModel > New(const dictionary &dict, const phaseInterface &interface)
static autoPtr< blendedPhaseTransferModel > New(const dictionary &dict, const phaseInterface &interface)
phaseTransferModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...