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>
94 template<
class Thermo,
class OtherThermo>
98 const word& speciesName,
102 if (saturatedName_ == speciesName)
104 return wRatioByP()*saturationModel_->pSat(Tf);
108 const label speciesIndex
110 this->
thermo_.composition().species()[speciesName]
114 this->
thermo_.Y()[speciesIndex]
115 *(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
116 /
max(scalar(1) - this->
thermo_.Y()[saturatedIndex_], SMALL);
121 template<
class Thermo,
class OtherThermo>
125 const word& speciesName,
129 if (saturatedName_ == speciesName)
131 return wRatioByP()*saturationModel_->pSatPrime(Tf);
135 const label speciesIndex
137 this->
thermo_.composition().species()[speciesName]
141 - this->
thermo_.Y()[speciesIndex]
142 *wRatioByP()*saturationModel_->pSatPrime(Tf)
143 /
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 void update(const volScalarField &Tf)
Update the composition.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
basicMultiComponentMixture & composition
void size(const label)
Override size to be inconsistent with allocated storage.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Saturated(const dictionary &dict, const phasePair &pair)
Construct from components.
const hashedWordList speciesNames_
Names of the transferring species.
const Thermo & thermo_
Thermo.
virtual ~Saturated()
Destructor.
tmp< volScalarField > wRatioByP() const
Constant of propotionality between partial pressure and mass.
A class for managing temporary objects.