Go to the documentation of this file.
30 template<
class Thermo,
class OtherThermo>
33 const dictionary&
dict,
37 InterfaceCompositionModel<Thermo, OtherThermo>(
dict, pair),
43 IOobject::groupName(
"YSolvent", pair.
name()),
51 if (k_.size() != this->speciesNames_.size())
54 <<
"Differing number of species and solubilities"
62 template<
class Thermo,
class OtherThermo>
69 template<
class Thermo,
class OtherThermo>
75 YSolvent_ = scalar(1);
79 YSolvent_ -= Yf(*iter, Tf);
84 template<
class Thermo,
class OtherThermo>
88 const word& speciesName,
92 if (this->speciesNames_.contains(speciesName))
94 const label index = this->speciesNames_[speciesName];
98 *this->otherThermo_.composition().Y(speciesName)
99 *this->otherThermo_.rhoThermo::rho()
100 /this->thermo_.rhoThermo::rho();
106 *this->thermo_.composition().Y(speciesName);
111 template<
class Thermo,
class OtherThermo>
115 const word& speciesName,
119 return tmp<volScalarField>
126 this->pair_.phase1().mesh().time().timeName(),
127 this->pair_.phase1().mesh()
129 this->pair_.phase1().mesh(),
static word groupName(Name name, const word &group)
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
A class for managing temporary objects.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
Henry(const dictionary &dict, const phasePair &pair)
Construct from components.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
virtual void update(const volScalarField &Tf)
Update the composition.
virtual ~Henry()
Destructor.
word name(const complex &)
Return a string representation of a complex.
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
stressControl lookup("compactNormalStress") >> compactNormalStress