Go to the documentation of this file.
26 #include "phaseModel.H"
33 const phaseSystem&
fluid,
34 const word& phaseName,
40 Info<<
"Selecting phaseModel for "
41 << phaseName <<
": " << phaseModelType <<
endl;
43 phaseSystemConstructorTable::iterator cstrIter =
44 phaseSystemConstructorTablePtr_->find(phaseModelType);
46 if (cstrIter == phaseSystemConstructorTablePtr_->end())
49 <<
"Unknown phaseModelType type "
51 <<
"Valid phaseModel types are : " <<
endl
52 << phaseSystemConstructorTablePtr_->sortedToc()
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label index() const
Return the index of the phase.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const phaseSystem & fluid() const
Return the system to which this phase belongs.
errorManipArg< error, int > exit(error &err, const int errNo=1)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName, const label index)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.