26 #include "multiphaseSystem.H" 35 const word multiphaseSystemType
42 mesh.time().constant(),
51 Info<<
"Selecting multiphaseSystem " 52 << multiphaseSystemType <<
endl;
54 dictionaryConstructorTable::iterator cstrIter =
55 dictionaryConstructorTablePtr_->find(multiphaseSystemType);
57 if (cstrIter == dictionaryConstructorTablePtr_->end())
60 <<
"Unknown multiphaseSystemType type " 61 << multiphaseSystemType << endl << endl
62 <<
"Valid multiphaseSystem types are : " << endl
63 << dictionaryConstructorTablePtr_->sortedToc()
67 return cstrIter()(
mesh);
static const word propertiesName
Default name of the phase properties dictionary.
static autoPtr< multiphaseSystem > New(const fvMesh &mesh)
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & mesh() const
Constant access the mesh.
IOdictionary(const IOobject &)
Construct given an IOobject.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...