Interface to two constant density phases. More...
Public Member Functions | |
TypeName ("incompressibleTwoPhases") | |
Runtime type information. More... | |
incompressibleTwoPhases () | |
Default construct. More... | |
virtual | ~incompressibleTwoPhases () |
Destructor. More... | |
virtual const dimensionedScalar & | rho1 () const =0 |
Return the density of phase1. More... | |
virtual const dimensionedScalar & | rho2 () const =0 |
Return the density of phase2. More... | |
const dimensionedScalar & | rho (const bool index) const |
Return the density of a given phase. More... | |
![]() | |
TypeName ("twoPhases") | |
Runtime type information. More... | |
twoPhases () | |
Default construct. More... | |
virtual | ~twoPhases () |
Destructor. More... | |
const fvMesh & | mesh () const |
Access the mesh. More... | |
bool | index (const word &name) const |
Return the index associated with a given phase name. More... | |
virtual const volScalarField & | alpha1 () const =0 |
Return the volume-fraction of phase 1. More... | |
virtual const volScalarField & | alpha2 () const =0 |
Return the volume-fraction of phase 2. More... | |
const volScalarField & | alpha (const bool index) const |
Return the volume-fraction of a given phase. More... | |
Interface to two constant density phases.
Definition at line 48 of file incompressibleTwoPhases.H.
|
inline |
Default construct.
Definition at line 61 of file incompressibleTwoPhases.H.
|
inlinevirtual |
Destructor.
Definition at line 66 of file incompressibleTwoPhases.H.
TypeName | ( | "incompressibleTwoPhases" | ) |
Runtime type information.
|
pure virtual |
Return the density of phase1.
Implemented in incompressibleTwoPhaseVoFMixture, and incompressibleDriftFluxMixture.
Referenced by incompressibleTwoPhases::rho().
|
pure virtual |
Return the density of phase2.
Implemented in incompressibleTwoPhaseVoFMixture, and incompressibleDriftFluxMixture.
Referenced by incompressibleTwoPhases::rho().
|
inline |
Return the density of a given phase.
Definition at line 79 of file incompressibleTwoPhases.H.
References twoPhases::index(), incompressibleTwoPhases::rho1(), and incompressibleTwoPhases::rho2().
Referenced by cavitationModel::rhol(), and cavitationModel::rhov().