30 template<
class Thermo,
class OtherThermo>
36 this->thermo_.composition().W(saturatedIndex_)
37 /this->thermo_.composition().W()
44 template<
class Thermo,
class OtherThermo>
47 const dictionary& dict,
51 InterfaceCompositionModel<Thermo, OtherThermo>(dict, pair),
52 saturatedName_(this->speciesNames_[0]),
55 this->thermo_.
composition().species()[saturatedName_]
61 dict.subDict(
"saturationPressure")
68 <<
"Saturated model is suitable for one species only." 76 template<
class Thermo,
class OtherThermo>
83 template<
class Thermo,
class OtherThermo>
92 template<
class Thermo,
class OtherThermo>
96 const word& speciesName,
100 if (saturatedName_ == speciesName)
102 return wRatioByP()*saturationModel_->pSat(Tf);
106 const label speciesIndex
108 this->
thermo_.composition().species()[speciesName]
112 this->
thermo_.Y()[speciesIndex]
113 *(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
114 /
max(scalar(1) - this->
thermo_.Y()[saturatedIndex_], SMALL);
119 template<
class Thermo,
class OtherThermo>
123 const word& speciesName,
127 if (saturatedName_ == speciesName)
129 return wRatioByP()*saturationModel_->pSatPrime(Tf);
133 const label speciesIndex
135 this->
thermo_.composition().species()[speciesName]
139 - this->
thermo_.Y()[speciesIndex]
140 *wRatioByP()*saturationModel_->pSatPrime(Tf)
141 /
max(scalar(1) - this->
thermo_.Y()[saturatedIndex_], SMALL);
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
virtual void update(const volScalarField &Tf)
Update the composition.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
basicMultiComponentMixture & composition
void size(const label)
Override size to be inconsistent with allocated storage.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Saturated(const dictionary &dict, const phasePair &pair)
Construct from components.
tmp< volScalarField > wRatioByP() const
Constant of propotionality between partial pressure and mass.
const hashedWordList speciesNames_
Names of the transferring species.
const Thermo & thermo_
Thermo.
virtual ~Saturated()
Destructor.
A class for managing temporary objects.