32 template<
class Thermo,
class OtherThermo>
63 for (
const word& speciesName : this->speciesNames_)
72 dict.subDict(speciesName),
83 template<
class Thermo,
class OtherThermo>
89 YNonVapour_ = scalar(1);
96 this->otherThermo_.composition().Y(iter.key())
97 *iter()->Yf(iter.key(), Tf);
100 this->otherThermo_.composition().Y(iter.key())
101 *iter()->YfPrime(iter.key(), Tf);
106 template<
class Thermo,
class OtherThermo>
110 const word& speciesName,
114 if (this->speciesNames_.found(speciesName))
117 this->otherThermo_.composition().Y(speciesName)
118 *speciesModels_[speciesName]->Yf(speciesName, Tf);
123 this->thermo_.composition().Y(speciesName)
129 template<
class Thermo,
class OtherThermo>
133 const word& speciesName,
137 if (this->speciesNames_.found(speciesName))
140 this->otherThermo_.composition().Y(speciesName)
141 *speciesModels_[speciesName]->YfPrime(speciesName, Tf);
146 this->otherThermo_.composition().Y(speciesName)
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Base class for interface composition models, templated on the two thermodynamic models either side of...
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
const dimensionSet dimless
Dimensionless.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
#define forAllIters(container, iter)
Iterate across all elements in the container object.
const phasePair & pair() const
The phase pair.
virtual void update(const volScalarField &Tf)
Update the composition.
static autoPtr< interfaceCompositionModel > New(const dictionary &dict, const phasePair &pair)
Raoult(const dictionary &dict, const phasePair &pair)
Construct from components.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...