34 const word& phaseName,
35 const bool referencePhase,
41 Info<<
"Selecting phaseModel for "
42 << phaseName <<
": " << phaseModelType <<
endl;
44 phaseSystemConstructorTable::iterator cstrIter =
45 phaseSystemConstructorTablePtr_->find(phaseModelType);
47 if (cstrIter == phaseSystemConstructorTablePtr_->end())
50 <<
"Unknown phaseModel type "
52 <<
"Valid phaseModel types are : " <<
endl
53 << phaseSystemConstructorTablePtr_->sortedToc()
57 return cstrIter()(
fluid, phaseName, referencePhase,
index);
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
label index() const
Return the index of the phase.
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index)
Class to represent a system of phases and model interfacial transfers between them.
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)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.