Go to the documentation of this file.
37 #ifndef multiphaseMixtureThermo_H
38 #define multiphaseMixtureThermo_H
40 #include "phaseModel.H"
94 friend bool operator==
102 ((a.first() ==
b.first()) && (a.
second() ==
b.second()))
103 || ((a.first() ==
b.second()) && (a.
second() ==
b.first()))
107 friend bool operator!=
147 void solveAlphas(
const scalar cAlpha);
161 void correctContactAngle
165 surfaceVectorField::Boundary& nHatb
178 TypeName(
"multiphaseMixtureThermo");
251 return phases_[0].thermo().he();
258 return phases_[0].thermo().he();
const T & second() const noexcept
Return second element, which is also the last element.
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > alphahe() const
Thermal diffusivity for energy of mixture [kg/m/s].
virtual tmp< volScalarField > CpByCpv() const
Heat capacity ratio [].
const volVectorField & U() const
Return the velocity.
virtual volScalarField & p()
Pressure [Pa].
A class for managing temporary objects.
const volScalarField & alpha2
Template dictionary class which manages the storage associated with it.
virtual ~multiphaseMixtureThermo()=default
Destructor.
virtual const volScalarField & he() const
Enthalpy/Internal energy [J/kg].
label operator()(const interfacePair &key) const
virtual tmp< volScalarField > Cpv() const
Heat capacity at constant pressure/volume [J/kg/K].
const volScalarField & alpha1
interfacePair(const phaseModel &alpha1, const phaseModel &alpha2)
virtual bool isochoric() const
Return true if the equation of state is isochoric.
Dimension set for the base types.
const word & name() const
tmp< volScalarField > nearInterface() const
Indicator of the proximity of the interface.
tmp< surfaceScalarField > surfaceTensionForce() const
const surfaceScalarField & phi() const
Return the volumetric flux.
CGAL::Exact_predicates_exact_constructions_kernel K
virtual tmp< volScalarField > kappaEff(const volScalarField &alphat) const
Effective thermal diffusivity of mixture [J/m/s/K].
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
interfacePair(const word &alpha1Name, const word &alpha2Name)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
const dimensionedScalar h
Planck constant.
Hashing function for string and derived string classes.
Basic thermodynamic properties based on compressibility.
virtual tmp< volScalarField > Cv() const
Heat capacity at constant volume [J/kg/K].
virtual tmp< volScalarField > rho() const
Density [kg/m^3].
virtual volScalarField & he()
Enthalpy/Internal energy [J/kg].
virtual word thermoName() const
Return the name of the thermo physics.
TypeName("multiphaseMixtureThermo")
Runtime type information.
virtual tmp< volScalarField > W() const
Molecular weight [kg/kmol].
Mesh data needed to do the Finite Volume discretisation.
const PtrDictionary< phaseModel > & phases() const
Return the phases.
virtual tmp< volScalarField > hc() const
Chemical enthalpy [J/kg].
tmp< volScalarField > rCv() const
Return the phase-averaged reciprocal Cv.
An ordered pair of two objects of type <T> with first() and second() elements.
virtual const volScalarField & T() const
Temperature [K].
virtual tmp< scalarField > THE(const scalarField &h, const scalarField &p, const scalarField &T0, const labelList &cells) const
Temperature from enthalpy/internal energy for cell-set.
PtrDictionary< phaseModel > & phases()
Return non-const access to the phases.
virtual tmp< volScalarField > Cp() const
Heat capacity at constant pressure [J/kg/K].
virtual tmp< volScalarField > alphaEff(const volScalarField &alphat) const
Effective thermal diffusivity of mixture [J/m/s/K].
multiphaseMixtureThermo(const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
virtual tmp< volScalarField > kappa() const
Thermal diffusivity for temperature of mixture [J/m/s/K].
virtual tmp< volScalarField > gamma() const
Gamma = Cp/Cv [].
void solve()
Solve for the mixture phase-fractions.
virtual bool incompressible() const
Return true if the equation of state is incompressible.
virtual void correct()
Update properties.
const surfaceScalarField & rhoPhi() const
void correctRho(const volScalarField &dp)
Update densities for given pressure change.