38 const volVectorField&
U,
39 const surfaceScalarField&
phi
46 "transportProperties",
55 const word modelType(
dict.get<word>(
"phaseChangeTwoPhaseMixture"));
57 Info<<
"Selecting phaseChange model " << modelType <<
endl;
59 auto* ctorPtr = componentsConstructorTable(modelType);
66 "phaseChangeTwoPhaseMixture",
68 *componentsConstructorTablePtr_
72 return autoPtr<phaseChangeTwoPhaseMixture>(ctorPtr(
U,
phi));
IOdictionary(const IOobject &io, const dictionary *fallback=nullptr)
Construct given an IOobject and optional fallback dictionary content.
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)