Go to the documentation of this file.
37 #ifndef multiphaseMixtureThermo_H
38 #define multiphaseMixtureThermo_H
40 #include "phaseModel.H"
93 friend bool operator==
102 friend bool operator!=
142 void solveAlphas(
const scalar cAlpha);
156 void correctContactAngle
160 surfaceVectorField::Boundary& nHatb
173 TypeName(
"multiphaseMixtureThermo");
246 return phases_[0].thermo().he();
253 return phases_[0].thermo().he();
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.
Symmetric pair of interface names.
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].
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, which can be used to implement rigorous dimension checking for alge...
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.
virtual tmp< scalarField > rhoEoS(const scalarField &p, const scalarField &T, const labelList &cells) const
Density from pressure and temperature.
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.
Pair< word >::symmHasher hash
TypeName("multiphaseMixtureThermo")
Runtime type information.
virtual tmp< volScalarField > W() const
Molecular weight [kg/kmol].
Mesh data needed to do the Finite Volume discretisation.
Pair< word >::symmHasher hasher
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].
static tmp< T > New(Args &&... args)
Construct tmp of T with forwarding arguments.
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.