35 #ifndef twoPhaseChangeModel_H 36 #define twoPhaseChangeModel_H 51 class twoPhaseChangeModel
60 const twoPhaseMixtureThermo& mixture
130 return mixture_.
rho1();
136 return mixture_.
rho2();
167 virtual bool read() = 0;
static const word phaseChangePropertiesName
Default phaseChangeProperties dictionary name.
virtual Pair< tmp< volScalarField::Internal > > Salpha(volScalarField &alpha) const =0
Return the phase-change explicit and implicit sources.
TypeName("phaseChangeModel")
Runtime type information.
virtual tmp< fvVectorMatrix > SU(const volScalarField &rho, const surfaceScalarField &rhoPhi, volVectorField &U) const =0
Return the phase-change source matrix for the momentum equation.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dictionary twoPhaseChangeModelCoeffs_
Model coefficient dictionary.
Thermophysical properties class for a mixture of two rhoThermo including interfaceProperties for VoF ...
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.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static autoPtr< twoPhaseChangeModel > New(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Return a reference to the selected phaseChange model.
const volScalarField::Internal & rho1() const
Return the internal field of the density of phase 1.
An ordered pair of two objects of type <T> with first() and second() elements.
virtual ~twoPhaseChangeModel()
Destructor.
A class for handling words, derived from string.
virtual void correct()=0
Correct the phaseChange model.
virtual bool read()=0
Read the transportProperties dictionary and update.
declareRunTimeSelectionTable(autoPtr, twoPhaseChangeModel, dictionary,(const immiscibleIncompressibleTwoPhaseMixture &mixture),(mixture))
void operator=(const twoPhaseChangeModel &)=delete
Disallow default bitwise assignment.
const volScalarField & rho2() const
Return the density of phase 2.
virtual tmp< fvScalarMatrix > Sp_rgh(const volScalarField &rho, const volScalarField &gh, volScalarField &p_rgh) const =0
Return the phase-change source matrix.
Forward declarations of fvMatrix specialisations.
twoPhaseChangeModel(const word &type, const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct from dictionary.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const volScalarField & gh
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A class for managing temporary objects.
const volScalarField::Internal & rho2() const
Return the internal field of the density of phase 2.
const immiscibleIncompressibleTwoPhaseMixture & mixture_
Reference to the two-phase mixture.
const volScalarField & rho1() const
Return the density of phase 1.