Go to the documentation of this file.
28 #include "multiphaseSystem.H"
50 const word systemType(
dict.get<word>(
"type"));
52 Info<<
"Selecting multiphaseSystem " << systemType <<
endl;
54 const auto cstrIter = dictionaryConstructorTablePtr_->cfind(systemType);
56 if (!cstrIter.found())
63 *dictionaryConstructorTablePtr_
67 return autoPtr<multiphaseSystem>(cstrIter()(
mesh));
IOdictionary(const IOobject &)
Construct given an IOobject.
IOobject(const IOobject &)=default
Copy construct.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#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)
static autoPtr< multiphaseSystem > New(const fvMesh &mesh)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvMesh & mesh() const
Return the mesh.
static const word phasePropertiesName
Default name of the phase properties dictionary.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const Time & time() const
Return the top-level database.
const word & constant() const
Return constant name.