42 "transportProperties",
51 word phaseChangeTwoPhaseMixtureTypeName
53 transportPropertiesDict.lookup(
"phaseChangeTwoPhaseMixture")
56 Info<<
"Selecting phaseChange model " 57 << phaseChangeTwoPhaseMixtureTypeName <<
endl;
59 componentsConstructorTable::iterator cstrIter =
60 componentsConstructorTablePtr_
61 ->find(phaseChangeTwoPhaseMixtureTypeName);
63 if (cstrIter == componentsConstructorTablePtr_->end())
66 <<
"Unknown phaseChangeTwoPhaseMixture type " 67 << phaseChangeTwoPhaseMixtureTypeName << endl << endl
68 <<
"Valid phaseChangeTwoPhaseMixtures are : " << endl
69 << componentsConstructorTablePtr_->sortedToc()
73 return autoPtr<phaseChangeTwoPhaseMixture>(cstrIter()(
U,
phi));
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.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const volVectorField & U() const
Return const-access to the mixture velocity.
static autoPtr< phaseChangeTwoPhaseMixture > New(const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected phaseChange model.
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...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField