26 #include "noPhaseChange.H" 32 const compressibleTwoPhaseMixture& mixture
35 typeIOobject<IOdictionary> twoPhaseChangeModelIO
40 mixture.alpha1().time().constant(),
41 mixture.alpha1().db(),
48 word modelType(twoPhaseChangeModels::noPhaseChange::typeName);
50 if (twoPhaseChangeModelIO.headerOk())
54 twoPhaseChangeModel::typeName
59 Info<<
"No phase change: " 60 << twoPhaseChangeModelIO.name()
61 <<
" not found" <<
endl;
64 Info<<
"Selecting phaseChange model " << modelType <<
endl;
66 dictionaryConstructorTable::iterator cstrIter =
67 dictionaryConstructorTablePtr_->find(modelType);
69 if (cstrIter == dictionaryConstructorTablePtr_->end())
72 <<
"Unknown " << twoPhaseChangeModel::typeName<<
" type " 73 << modelType <<
nl <<
nl 74 <<
"Valid twoPhaseChangeModels are : " << endl
75 << dictionaryConstructorTablePtr_->sortedToc()
79 return autoPtr<twoPhaseChangeModel>(cstrIter()(mixture));
static const word phaseChangePropertiesName
Default phaseChangeProperties dictionary name.
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.
static autoPtr< twoPhaseChangeModel > New(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Return a reference to the selected phaseChange model.
IOdictionary(const IOobject &io, const word &wantedType)
Construct given an IOobject, supply wanted typeName.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...