Go to the documentation of this file.
29 #include "phaseModel.H"
30 #include "phasePair.H"
37 template<
class Thermo,
class OtherThermo>
38 template<
class ThermoType>
42 const word& speciesName,
49 globalThermo.species()
57 template<
class Thermo,
class OtherThermo>
58 template<
class ThermoType>
62 const word& speciesName,
72 template<
class Thermo,
class OtherThermo>
82 pair.
phase1().mesh().lookupObject<Thermo>
89 pair.
phase2().mesh().lookupObject<OtherThermo>
100 template<
class Thermo,
class OtherThermo>
104 const word& speciesName,
110 - thermo_.composition().Y()
112 thermo_.composition().species()[speciesName]
117 template<
class Thermo,
class OtherThermo>
121 const word& speciesName
124 const typename Thermo::thermoType& localThermo =
139 IOobject::groupName(
"D", pair_.name()),
150 localThermo.alphah(
p[celli],
T[celli])
151 /localThermo.rho(
p[celli],
T[celli]);
160 template<
class Thermo,
class OtherThermo>
164 const word& speciesName,
168 const typename Thermo::thermoType& localThermo =
174 const typename OtherThermo::thermoType& otherLocalThermo =
188 IOobject::groupName(
"L", pair_.name()),
199 localThermo.Ha(
p[celli], Tf[celli])
200 - otherLocalThermo.Ha(otherP[celli], Tf[celli]);
207 template<
class Thermo,
class OtherThermo>
216 for (
const word& speciesName : this->speciesNames_)
220 thermo_.rhoThermo::rho()
226 mDotL += rhoKDL*dY(speciesName, Tf);
227 mDotLPrime += rhoKDL*YfPrime(speciesName, Tf);
const vector L(dict.get< vector >("L"))
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > L(const word &speciesName, const volScalarField &Tf) const
Latent heat.
A class for managing temporary objects.
const dimensionSet dimEnergy
const pureMixture< ThermoType >::thermoType & getLocalThermo(const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
Get a reference to the local thermo for a pure mixture.
const word dictName("blockMeshDict")
const ThermoType & cellMixture(const label) const
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
Generic base class for interface composition models. These models describe the composition in phase 1...
#define forAll(list, i)
Loop across all elements in list.
CGAL::Exact_predicates_exact_constructions_kernel K
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
InterfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from components.
const dimensionSet dimArea(sqr(dimLength))
Foam::multiComponentMixture.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
const word & name() const
Return the name of this phase.
const ThermoType & getLocalThermo(const label speciei) const
Return thermo based on index.
virtual void addMDotL(const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const
Add latent heat flow rate to total.
const dimensionedScalar & D
const phaseModel & phase2() const
Return phase 2.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
const phaseModel & phase1() const
Return phase 1.
virtual tmp< volScalarField > D(const word &speciesName) const
Mass diffusivity.
virtual tmp< volScalarField > dY(const word &speciesName, const volScalarField &Tf) const
Mass fraction difference between the interface and the field.