29 #include "phaseModel.H" 30 #include "phasePair.H" 40 template<
class Thermo,
class OtherThermo>
41 template<
class ThermoType>
45 const word& speciesName,
52 globalThermo.
species().find(speciesName)
57 template<
class Thermo,
class OtherThermo>
58 template<
class ThermoType>
62 const word& speciesName,
70 template<
class Thermo,
class OtherThermo>
71 template<
class ThermoType>
75 const word& speciesName,
97 template<
class Thermo,
class OtherThermo>
98 template<
class ThermoType>
102 const word& speciesName,
120 template<
class Thermo,
class OtherThermo>
121 template<
class ThermoType>
146 template<
class Thermo,
class OtherThermo>
147 template<
class ThermoType>
154 return refCast<const basicSpecieMixture>(
mixture).W();
160 template<
class Thermo,
class OtherThermo>
170 pair.from().
mesh().lookupObject<Thermo>
181 pair.to().
mesh().lookupObject<OtherThermo>
196 template<
class Thermo,
class OtherThermo>
200 const word& speciesName
203 const typename OtherThermo::thermoType& toThermoType =
221 auto&
D = tmpD.ref();
226 toThermoType.alphah(
p[celli],
T[celli])
227 /toThermoType.rho(
p[celli],
T[celli]);
231 D.correctBoundaryConditions();
237 template<
class Thermo,
class OtherThermo>
241 const word& speciesName
244 const typename Thermo::thermoType& fromThermoType =
262 auto&
D = tmpD.ref();
267 fromThermoType.alphah(
p[celli],
T[celli])
268 /fromThermoType.rho(
p[celli],
T[celli]);
272 D.correctBoundaryConditions();
278 template<
class Thermo,
class OtherThermo>
282 const word& speciesName,
286 const typename Thermo::thermoType& fromThermo =
287 getLocalThermo(speciesName, fromThermo_);
288 const typename OtherThermo::thermoType& toThermo =
289 getLocalThermo(speciesName, toThermo_);
301 auto&
L = tmpL.ref();
306 L[celli] = fromThermo.Hc() - toThermo.Hc();
309 L.correctBoundaryConditions();
315 template<
class Thermo,
class OtherThermo>
319 const word& speciesName,
328 template<
class Thermo,
class OtherThermo>
332 const word& speciesName,
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
Abstract base-class for fluid and solid thermodynamic properties.
tmp< volScalarField > MwMixture(const pureMixture< ThermoType > &thermo) const
Return moleculas weight of the mixture for pureMixture [Kg/mol].
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const vector L(dict.get< vector >("L"))
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
const word dictName("faMeshDefinition")
const speciesTable & species() const
Return the table of species.
const dimensionSet dimless
Dimensionless.
#define forAll(list, i)
Loop across all elements in list.
const pureMixture< ThermoType >::thermoType & getLocalThermo(const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
Get a reference to the local thermo for a pure mixture.
virtual tmp< volScalarField > Dfrom(const word &speciesName) const
Specie mass diffusivity for pure mixture.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
const ThermoType & cellMixture(const label) const
const dimensionedScalar e
Elementary charge.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
tmp< volScalarField > getSpecieMassFraction(const word &speciesName, const pureMixture< ThermoType > &thermo) const
Return mass fraction for a pureMixture equal to one.
A class for handling words, derived from Foam::string.
Foam::multiComponentMixture.
virtual tmp< volScalarField > L(const word &speciesName, const volScalarField &Tf) const
Latent heat (to - from)(thermo - otherThermo)
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
const Mesh & mesh() const noexcept
Return mesh.
virtual tmp< volScalarField > dY(const word &speciesName, const volScalarField &Tf) const
Mass fraction difference between the interface and the field.
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
virtual tmp< volScalarField > Dto(const word &speciesName) const
Specie mass diffusivity for specie in a multicomponent.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionSet dimEnergy
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
Mesh data needed to do the Finite Volume discretisation.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
Reference mass fraction for species based models.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionedScalar & D
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Defines the attributes of an object for which implicit objectRegistry management is supported...
const ThermoType & getLocalThermo(const label speciei) const
Return thermo based on index.
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Do not request registration (bool: false)
InterfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from components.
const dimensionSet dimArea(sqr(dimLength))
static constexpr const zero Zero
Global zero (0)