26 #include "twoPhaseSystem.H" 35 const word twoPhaseSystemType
42 mesh.time().constant(),
51 Info<<
"Selecting twoPhaseSystem " 52 << twoPhaseSystemType <<
endl;
54 dictionaryConstructorTable::iterator cstrIter =
55 dictionaryConstructorTablePtr_->find(twoPhaseSystemType);
57 if (cstrIter == dictionaryConstructorTablePtr_->end())
60 <<
"Unknown twoPhaseSystemType type " 61 << twoPhaseSystemType << endl << endl
62 <<
"Valid twoPhaseSystem types are : " << endl
63 << dictionaryConstructorTablePtr_->sortedToc()
67 return cstrIter()(
mesh);
static const word propertiesName
Default name of the phase properties dictionary.
const fvMesh & mesh() const
Return the 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.
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...
static autoPtr< twoPhaseSystem > New(const fvMesh &mesh)