29#include "phaseModel.H"
40template<
class Thermo,
class OtherThermo>
41template<
class ThermoType>
45 const word& speciesName,
57template<
class Thermo,
class OtherThermo>
58template<
class ThermoType>
62 const word& speciesName,
70template<
class Thermo,
class OtherThermo>
71template<
class ThermoType>
75 const word& speciesName,
86 mesh.time().timeName(),
104template<
class Thermo,
class OtherThermo>
105template<
class ThermoType>
109 const word& speciesName,
120 mesh.time().timeName(),
132template<
class Thermo,
class OtherThermo>
133template<
class ThermoType>
147 mesh.time().timeName(),
164template<
class Thermo,
class OtherThermo>
165template<
class ThermoType>
172 return refCast<const basicSpecieMixture>(
mixture).W();
178template<
class Thermo,
class OtherThermo>
188 pair.from().
mesh().lookupObject<Thermo>
199 pair.to().
mesh().lookupObject<OtherThermo>
214template<
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();
260template<
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();
306template<
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();
348template<
class Thermo,
class OtherThermo>
352 const word& speciesName,
361template<
class Thermo,
class OtherThermo>
365 const word& speciesName,
const Mesh & mesh() const
Return mesh.
tmp< GeometricField< Type, PatchField, GeoMesh > > T() const
Return transpose (only if it is a tensor field)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const Time & time() const
Return Time associated with the objectRegistry.
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 tmp< volScalarField > Dto(const word &speciesName) const
Specie mass diffusivity for specie in a multicomponent.
tmp< volScalarField > MwMixture(const pureMixture< ThermoType > &thermo) const
Return moleculas weight of the mixture for pureMixture [Kg/mol].
virtual tmp< volScalarField > dY(const word &speciesName, const volScalarField &Tf) const
Mass fraction difference between the interface and the field.
tmp< volScalarField > getSpecieMassFraction(const word &speciesName, const pureMixture< ThermoType > &thermo) const
Return mass fraction for a pureMixture equal to one.
virtual tmp< volScalarField > Dfrom(const word &speciesName) const
Specie mass diffusivity for pure mixture.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
Reference mass fraction for species based models.
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.
static word timeName(const scalar t, const int precision=precision_)
const speciesTable & species() const
Return the table of species.
Abstract base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
label find(const word &val) const
Find index of the value (searches the hash).
Foam::multiComponentMixture.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
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...
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
const ThermoType & cellMixture(const label) const
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const word dictName("faMeshDefinition")
const dimensionSet dimless
Dimensionless.
const dimensionSet dimEnergy
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
const dimensionSet dimArea(sqr(dimLength))
static constexpr const zero Zero
Global zero (0)
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.
static const char *const typeName
The type name used in ensight case files.
const vector L(dict.get< vector >("L"))