29#include "phaseModel.H"
37template<
class Thermo,
class OtherThermo>
38template<
class ThermoType>
42 const word& speciesName,
43 const multiComponentMixture<ThermoType>& globalThermo
47 globalThermo.getLocalThermo
49 globalThermo.species().find(speciesName)
54template<
class Thermo,
class OtherThermo>
55template<
class ThermoType>
59 const word& speciesName,
60 const pureMixture<ThermoType>& globalThermo
63 return globalThermo.cellMixture(0);
69template<
class Thermo,
class OtherThermo>
72 const dictionary&
dict,
76 interfaceCompositionModel(
dict, pair),
97template<
class Thermo,
class OtherThermo>
101 const word& speciesName,
107 - thermo_.composition().Y()
109 thermo_.composition().species().find(speciesName)
114template<
class Thermo,
class OtherThermo>
118 const word& speciesName
121 const typename Thermo::thermoType& localThermo =
147 localThermo.alphah(
p[celli],
T[celli])
148 /localThermo.rho(
p[celli],
T[celli]);
157template<
class Thermo,
class OtherThermo>
161 const word& speciesName,
165 const typename Thermo::thermoType& localThermo =
171 const typename OtherThermo::thermoType& otherLocalThermo =
196 localThermo.Ha(
p[celli], Tf[celli])
197 - otherLocalThermo.Ha(otherP[celli], Tf[celli]);
204template<
class Thermo,
class OtherThermo>
213 for (
const word& speciesName : this->speciesNames_)
217 thermo_.rhoThermo::rho()
223 mDotL += rhoKDL*dY(speciesName, Tf);
224 mDotLPrime += rhoKDL*YfPrime(speciesName, Tf);
CGAL::Exact_predicates_exact_constructions_kernel K
const Mesh & mesh() const
Return mesh.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
Base class for interface composition models, templated on the two thermodynamic models either side of...
virtual void addMDotL(const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const
Add latent heat flow rate to total.
virtual tmp< volScalarField > dY(const word &speciesName, const volScalarField &Tf) const
Mass fraction difference between the interface and the field.
const pureMixture< ThermoType >::thermoType & getLocalThermo(const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
Get a reference to the local thermo for a pure mixture.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
const word dictName("faMeshDefinition")
const dimensionSet dimless
Dimensionless.
const dimensionSet dimEnergy
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dimensionSet dimArea(sqr(dimLength))
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const dimensionedScalar & D
#define forAll(list, i)
Loop across all elements in list.
const vector L(dict.get< vector >("L"))