32 template<
class Thermo,
class OtherThermo>
53 if (k_.
size() != this->speciesNames_.size())
56 <<
"Differing number of species and solubilities" 64 template<
class Thermo,
class OtherThermo>
70 YSolvent_ = scalar(1);
72 for (
const word& speciesName : this->speciesNames_)
74 YSolvent_ -= Yf(speciesName, Tf);
79 template<
class Thermo,
class OtherThermo>
83 const word& speciesName,
87 const label index = this->speciesNames_.find(speciesName);
93 *this->otherThermo_.composition().Y(speciesName)
94 *this->otherThermo_.rhoThermo::rho()
95 /this->thermo_.rhoThermo::rho();
101 *this->thermo_.composition().Y(speciesName);
106 template<
class Thermo,
class OtherThermo>
110 const word& speciesName,
117 this->pair_.phase1().mesh(),
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Base class for interface composition models, templated on the two thermodynamic models either side of...
const dimensionSet dimless
Dimensionless.
Lookup type of boundary radiation properties.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
Henry(const dictionary &dict, const phasePair &pair)
Construct from components.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual void update(const volScalarField &Tf)
Update the composition.
A class for managing temporary objects.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< scalar >::calculatedType())
Return tmp field from name, mesh, dimensions and patch type.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
Defines the attributes of an object for which implicit objectRegistry management is supported...
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...