39 modelSubDict<diffusiveMassTransferModel>(
dict);
41 const word diffusiveMassTransferModelType(modelDict.
lookup(
"type"));
43 Info<<
"Selecting diffusiveMassTransferModel for "
44 << interface.
name() <<
": " << diffusiveMassTransferModelType <<
endl;
46 dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(diffusiveMassTransferModelType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
52 <<
"Unknown diffusiveMassTransferModel type "
53 << diffusiveMassTransferModelType <<
endl <<
endl
54 <<
"Valid diffusiveMassTransferModel types are : " <<
endl
55 << dictionaryConstructorTablePtr_->sortedToc()
59 return cstrIter()(modelDict, interface);
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
static autoPtr< diffusiveMassTransferModel > New(const dictionary &dict, const phaseInterface &interface)
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual word name() const
Name.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.