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(),
104 template<
class Thermo,
class OtherThermo>
105 template<
class ThermoType>
109 const word& speciesName,
120 mesh.time().timeName(),
133 template<
class Thermo,
class OtherThermo>
134 template<
class ThermoType>
148 mesh.time().timeName(),
165 template<
class Thermo,
class OtherThermo>
166 template<
class ThermoType>
173 return refCast<const basicSpecieMixture>(
mixture).W();
179 template<
class Thermo,
class OtherThermo>
189 pair.from().
mesh().lookupObject<Thermo>
200 pair.to().
mesh().lookupObject<OtherThermo>
215 template<
class Thermo,
class OtherThermo>
219 const word& speciesName
222 const typename OtherThermo::thermoType& toThermoType =
245 auto&
D = tmpD.ref();
250 toThermoType.alphah(
p[celli],
T[celli])
251 /toThermoType.rho(
p[celli],
T[celli]);
255 D.correctBoundaryConditions();
261 template<
class Thermo,
class OtherThermo>
265 const word& speciesName
268 const typename Thermo::thermoType& fromThermoType =
291 auto&
D = tmpD.ref();
296 fromThermoType.alphah(
p[celli],
T[celli])
297 /fromThermoType.rho(
p[celli],
T[celli]);
301 D.correctBoundaryConditions();
307 template<
class Thermo,
class OtherThermo>
311 const word& speciesName,
315 const typename Thermo::thermoType& fromThermo =
316 getLocalThermo(speciesName, fromThermo_);
317 const typename OtherThermo::thermoType& toThermo =
318 getLocalThermo(speciesName, toThermo_);
335 auto&
L = tmpL.ref();
340 L[celli] = fromThermo.Hc() - toThermo.Hc();
343 L.correctBoundaryConditions();
349 template<
class Thermo,
class OtherThermo>
353 const word& speciesName,
362 template<
class Thermo,
class OtherThermo>
366 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.
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 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.
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 Time & time() const noexcept
Return Time associated with the objectRegistry.
const Mesh & mesh() const noexcept
Return mesh.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value 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.
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)