33 namespace interfaceCompositionModels
71 saturatedName_(species()[0]),
72 saturatedIndex_(
composition().species()[saturatedName_]),
78 <<
"saturated model is suitable for one species only."
101 const word& speciesName,
105 if (saturatedName_ == speciesName)
107 return wRatioByP()*saturationModel_->pSat(Tf);
115 *(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
124 const word& speciesName,
128 if (saturatedName_ == speciesName)
130 return wRatioByP()*saturationModel_->pSatPrime(Tf);
138 *wRatioByP()*saturationModel_->pSatPrime(Tf)
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual tmp< volScalarField > W() const =0
Molecular weight [kg/kmol].
virtual volScalarField & p()=0
Pressure [Pa].
Generic base class for interface composition models. These models describe the composition in phase 1...
const rhoMulticomponentThermo & thermo() const
Return the thermo.
const basicSpecieMixture & composition() const
Return the composition.
const hashedWordList & species() const
Return the transferring species names.
Model which uses a saturation pressure model for a single species to calculate the interface composit...
virtual void update(const volScalarField &Tf)
Update the composition.
tmp< volScalarField > wRatioByP() const
Constant of proportionality between partial pressure and mass.
label saturatedIndex_
saturated species index
virtual ~saturated()
Destructor.
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.
saturated(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Model to describe the dependence of saturation pressure on temperature, and vice versa.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
addToRunTimeSelectionTable(interfaceCompositionModel, Henry, dictionary)
defineTypeNameAndDebug(Henry, 0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimMoles
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
const dimensionSet dimMass
basicSpecieMixture & composition
PtrList< volScalarField > & Y