33 namespace interfaceCompositionModels
38 interfaceCompositionModel,
66 const dictionary& dict,
67 const phaseInterface& interface
70 interfaceCompositionModel(dict, interface),
71 saturatedName_(species()[0]),
72 saturatedIndex_(
composition().species()[saturatedName_]),
77 dict.subDict(
"saturationPressure"),
86 <<
"saturated model is suitable for one species only." 109 const word& speciesName,
113 if (saturatedName_ == speciesName)
115 return wRatioByP()*saturationModel_->pSat(Tf);
123 *(scalar(1) - wRatioByP()*saturationModel_->pSat(Tf))
132 const word& speciesName,
136 if (saturatedName_ == speciesName)
138 return wRatioByP()*saturationModel_->pSatPrime(Tf);
146 *wRatioByP()*saturationModel_->pSatPrime(Tf)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
const hashedWordList & species() const
Return the transferring species names.
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fluidReactionThermo & thermo
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
basicSpecieMixture & composition
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
virtual ~saturated()
Destructor.
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void update(const volScalarField &Tf)
Update the composition.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
const dimensionSet dimMass
const basicSpecieMixture & composition() const
Return the composition.
saturated(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
const dimensionSet dimMoles
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
A class for managing temporary objects.
PtrList< volScalarField > & Y()
Return the mass-fraction fields.
tmp< volScalarField > wRatioByP() const
Constant of proportionality between partial pressure and mass.
const speciesTable & species() const
Return the table of species.