Go to the documentation of this file.
32 template<
class Thermo,
class OtherThermo>
41 this->thermo_.composition().W(saturatedIndex_)
44 return Wi/this->thermo_.W()/this->thermo_.p();
50 template<
class Thermo,
class OtherThermo>
58 saturatedName_(this->speciesNames_[0]),
61 this->thermo_.
composition().species()[saturatedName_]
67 dict.subDict(
"saturationPressure"),
75 <<
"Saturated model is suitable for one species only."
83 template<
class Thermo,
class OtherThermo>
90 template<
class Thermo,
class OtherThermo>
99 template<
class Thermo,
class OtherThermo>
103 const word& speciesName,
107 if (saturatedName_ == speciesName)
109 return wRatioByP()*saturationModel_->pSat(Tf);
113 const label speciesIndex
115 this->thermo_.composition().species()[speciesName]
119 this->thermo_.Y()[speciesIndex]
120 *(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
121 /
max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
126 template<
class Thermo,
class OtherThermo>
130 const word& speciesName,
134 if (saturatedName_ == speciesName)
136 return wRatioByP()*saturationModel_->pSatPrime(Tf);
140 const label speciesIndex
142 this->thermo_.composition().species()[speciesName]
146 - this->thermo_.Y()[speciesIndex]
147 *wRatioByP()*saturationModel_->pSatPrime(Tf)
148 /
max(scalar(1) - this->thermo_.Y()[saturatedIndex_], SMALL);
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
Base class for interface composition models, templated on the two thermodynamic models either side of...
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
A class for managing temporary objects.
const dimensionSet dimMoles(0, 0, 0, 0, 1, 0, 0)
basicSpecieMixture & composition
virtual void update(const volScalarField &Tf)
Saturated(const dictionary &dict, const phasePair &pair)
label max(const labelHashSet &set, label maxValue=labelMin)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Generic dimensioned Type class.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
#define FatalErrorInFunction
const hashedWordList speciesNames_
tmp< volScalarField > wRatioByP() const
const phaseModel & phase1() const
Generic GeometricField class.