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,
86 mesh.time().timeName(),
93 zeroGradientFvPatchScalarField::typeName
104 template<
class Thermo,
class OtherThermo>
105 template<
class ThermoType>
109 const word& speciesName,
120 mesh.time().timeName(),
127 zeroGradientFvPatchScalarField::typeName
132 template<
class Thermo,
class OtherThermo>
133 template<
class ThermoType>
147 mesh.time().timeName(),
159 zeroGradientFvPatchScalarField::typeName
164 template<
class Thermo,
class OtherThermo>
165 template<
class ThermoType>
172 return refCast<const basicSpecieMixture>(
mixture).W();
178 template<
class Thermo,
class OtherThermo>
188 pair.from().
mesh().lookupObject<Thermo>
199 pair.to().
mesh().lookupObject<OtherThermo>
214 template<
class Thermo,
class OtherThermo>
218 const word& speciesName
221 const typename OtherThermo::thermoType& toThermoType =
244 auto&
D = tmpD.ref();
249 toThermoType.alphah(
p[celli],
T[celli])
250 /toThermoType.rho(
p[celli],
T[celli]);
254 D.correctBoundaryConditions();
260 template<
class Thermo,
class OtherThermo>
264 const word& speciesName
267 const typename Thermo::thermoType& fromThermoType =
290 auto&
D = tmpD.ref();
295 fromThermoType.alphah(
p[celli],
T[celli])
296 /fromThermoType.rho(
p[celli],
T[celli]);
300 D.correctBoundaryConditions();
306 template<
class Thermo,
class OtherThermo>
310 const word& speciesName,
314 const typename Thermo::thermoType& fromThermo =
315 getLocalThermo(speciesName, fromThermo_);
316 const typename OtherThermo::thermoType& toThermo =
317 getLocalThermo(speciesName, toThermo_);
331 zeroGradientFvPatchScalarField::typeName
334 auto&
L = tmpL.ref();
339 L[celli] = fromThermo.Hc() - toThermo.Hc();
342 L.correctBoundaryConditions();
348 template<
class Thermo,
class OtherThermo>
352 const word& speciesName,
361 template<
class Thermo,
class OtherThermo>
365 const word& speciesName,
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.
Ignore writing from objectRegistry::writeObject()
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 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.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual tmp< volScalarField > L(const word &speciesName, const volScalarField &Tf) const
Latent heat (to - from)(thermo - otherThermo)
const Mesh & mesh() const noexcept
Return mesh.
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
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.
const Time & time() const
Return Time associated with the objectRegistry.
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...
InterfaceCompositionModel(const dictionary &dict, const phasePair &pair)
Construct from components.
const dimensionSet dimArea(sqr(dimLength))
static constexpr const zero Zero
Global zero (0)