Go to the documentation of this file.
37 #ifndef twoPhaseSystem_H
38 #define twoPhaseSystem_H
40 #include "phaseSystem.H"
48 class virtualMassModel;
158 virtual void solve();
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
static autoPtr< twoPhaseSystem > New(const fvMesh &mesh)
declareRunTimeSelectionTable(autoPtr, twoPhaseSystem, dictionary,(const fvMesh &mesh),(mesh))
const fvMesh & mesh() const
Return the mesh.
const phaseModel & phase1() const
Return phase model 1.
Class which solves the volume fraction equations for two phases.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
A class for managing temporary objects.
tmp< volScalarField > sigma(const phasePairKey &key) const
Return the surface tension coefficient for a pair.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
tmp< volScalarField > sigma() const
Return the surface tension coefficient.
TypeName("twoPhaseSystem")
Runtime type information.
const phaseModel & phase2() const
Return phase model 2.
virtual PtrList< volScalarField > dmdts() const
Return the mass transfer rates for each phase.
tmp< volScalarField > Vm() const
Return the virtual mass coefficient.
const phaseModel & otherPhase(const phaseModel &phase) const
Return the phase not given as an argument.
tmp< surfaceScalarField > Kdf() const
Return the face drag coefficient.
static const bool fillFields_
Flag to indicate that returned lists of fields are "complete"; i.e.,.
An ordered or unorder pair of phase names. Typically specified as follows.
virtual void solve()
Solve for the phase fractions.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
twoPhaseSystem(const fvMesh &)
Construct from fvMesh.
Mesh data needed to do the Finite Volume discretisation.
phaseModel & phase2_
Phase model 2.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
phaseModel & phase1_
Phase model 1.
virtual ~twoPhaseSystem()
Destructor.
Class to represent a system of phases and model interfacial transfers between them.
tmp< volScalarField > Kd() const
Return the drag coefficient.