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 phaseTransferModel type "
51 << phaseTransferModelType <<
endl <<
endl
52 <<
"Valid phaseTransferModel types are : " <<
endl
53 << dictionaryConstructorTablePtr_->sortedToc()
57 return cstrIter()(modelDict, interface);
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< blendedPhaseTransferModel > New(const dictionary &dict, const phaseInterface &interface)
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
const phaseSystem & fluid() const
Return the phase system.
virtual word name() const
Name.
static const dictionary & modelSubDict(const dictionary &dict)
Return the dictionary from which to construct a low-level.
static autoPtr< phaseTransferModel > New(const dictionary &dict, const phaseInterface &interface)
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.