Go to the documentation of this file.
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);
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
A class for managing temporary objects.
virtual void update(const volScalarField &Tf)
Update the composition.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Saturated(const dictionary &dict, const phasePair &pair)
Construct from components.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
tmp< volScalarField > wRatioByP() const
Constant of propotionality between partial pressure and mass.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const hashedWordList speciesNames_
Names of the transferring species.
basicMultiComponentMixture & composition
void size(const label)
Override size to be inconsistent with allocated storage.
virtual ~Saturated()
Destructor.