33 const dictionary& dict,
34 const phaseInterface& interface
37 const dictionary& modelDict =
40 const word diffusiveMassTransferModelType(modelDict.lookup(
"type"));
42 Info<<
"Selecting diffusiveMassTransferModel for " 43 << interface.name() <<
": " << diffusiveMassTransferModelType <<
endl;
45 dictionaryConstructorTable::iterator cstrIter =
46 dictionaryConstructorTablePtr_->find(diffusiveMassTransferModelType);
48 if (cstrIter == dictionaryConstructorTablePtr_->end())
51 <<
"Unknown diffusiveMassTransferModelType type " 52 << diffusiveMassTransferModelType << endl << endl
53 <<
"Valid diffusiveMassTransferModel types are : " << endl
54 << dictionaryConstructorTablePtr_->sortedToc()
58 return cstrIter()(modelDict, interface);
65 const dictionary& dict,
66 const phaseInterface& interface
69 return autoPtr<blendedDiffusiveMassTransferModel>
71 new blendedDiffusiveMassTransferModel(dict, interface)
79 const dictionary& dict,
80 const phaseInterface& interface
83 return autoPtr<sidedBlendedDiffusiveMassTransferModel>
85 new sidedBlendedDiffusiveMassTransferModel(dict, interface)
errorManipArg< error, int > exit(error &err, const int errNo=1)
static autoPtr< blendedDiffusiveMassTransferModel > New(const dictionary &dict, const phaseInterface &interface)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< sidedBlendedDiffusiveMassTransferModel > New(const dictionary &dict, const phaseInterface &interface)
diffusiveMassTransferModel(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...
static autoPtr< diffusiveMassTransferModel > New(const dictionary &dict, const phaseInterface &interface)