35 #ifndef compressibleTwoPhaseVoFMixture_H
36 #define compressibleTwoPhaseVoFMixture_H
61 Switch totalInternalEnergy_;
88 TypeName(
"compressibleTwoPhaseVoFMixture");
107 return totalInternalEnergy_;
155 return thermo1_->rho();
161 return thermo2_->rho();
168 thermo1_->incompressible()
169 && thermo2_->incompressible();
Generic GeometricField class.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Class to represent a mixture of two rhoFluidThermo-based phases.
virtual void correctThermo()
Correct the thermodynamics of each phase.
virtual void correct()
Update mixture properties.
compressibleTwoPhaseVoFMixture(const fvMesh &mesh)
Construct from a mesh.
volScalarField & p()
Return pressure [Pa].
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
const rhoFluidThermo & thermo1() const
Return the thermo for phase 1.
virtual tmp< volScalarField > psiByRho() const
Return the mixture compressibility/density.
virtual const volScalarField & rho() const
Return mixture density [kg/m^3].
const rhoFluidThermo & thermo2() const
Return the thermo for phase 2.
volScalarField & T()
Return mixture temperature [K].
TypeName("compressibleTwoPhaseVoFMixture")
Runtime type information.
const volScalarField & rho1() const
Return the density of phase 1.
virtual ~compressibleTwoPhaseVoFMixture()
Destructor.
const volScalarField & rho2() const
Return the density of phase 2.
virtual bool read()
Read base phaseProperties dictionary.
bool totalInternalEnergy() const
Return true to solve for total internal energy.
bool incompressible() const
The fluid is incompressible if both phases are incompressible.
Mesh data needed to do the Finite Volume discretisation.
Base-class for fluid thermodynamic properties based on density.
A class for managing temporary objects.
Class to represent a VoF mixture.
const fvMesh & mesh() const
Access the mesh.
Abstract base class for all fluid physical properties.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.