Go to the documentation of this file.
28 #include "phaseModel.H"
29 #include "phaseSystem.H"
35 const phaseSystem&
fluid,
41 const word modelType(
dict.get<word>(
"type"));
43 Info<<
"Selecting phaseModel for "
44 << phaseName <<
": " << modelType <<
endl;
46 const auto cstrIter = phaseSystemConstructorTablePtr_->cfind(modelType);
48 if (!cstrIter.found())
55 *phaseSystemConstructorTablePtr_
59 return cstrIter()(
fluid, phaseName);
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< phaseModel > New(const phaseSystem &fluid, const word &phaseName, const label index)
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (uses stdout - output is on the master only)
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const phaseSystem & fluid() const
Return the system to which this phase belongs.