Loading...
Searching...
No Matches
Henry< Thermo, OtherThermo > Class Template Reference

Henry's law for gas solubility in liquid. The concentration of a dissolved species in the liquid is proportional to its partial pressure in the gas. A dimensionless solubility, $k$, is given for each species. This is the ratio of the concentration of the species in the liquid to the corresponding concentration in the gas; i.e., $k =
c_{i,liq}/c_{i,gas}$. Mixing in the gas is assumed to be ideal. More...

#include <Henry.H>

Inheritance diagram for Henry< Thermo, OtherThermo >:
Collaboration diagram for Henry< Thermo, OtherThermo >:

Public Member Functions

 TypeName ("Henry")
 Runtime type information.
 Henry (const dictionary &dict, const phasePair &pair)
 Construct from components.
virtual ~Henry ()=default
 Destructor.
virtual void update (const volScalarField &Tf)
 Update the composition.
virtual tmp< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 The interface species fraction.
virtual tmp< volScalarFieldYfPrime (const word &speciesName, const volScalarField &Tf) const
 The interface species fraction derivative w.r.t. temperature.
Public Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 Construct from components.
virtual ~InterfaceCompositionModel ()=default
 Destructor.
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field.
virtual tmp< volScalarFieldDfrom (const word &speciesName) const
 Specie mass diffusivity for pure mixture.
virtual tmp< volScalarFieldDto (const word &speciesName) const
 Specie mass diffusivity for specie in a multicomponent.
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 Latent heat (to - from)(thermo - otherThermo).
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 Construct from components.
 ~InterfaceCompositionModel ()=default
 Destructor.
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field.
virtual tmp< volScalarFieldD (const word &speciesName) const
 Mass diffusivity.
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 Latent heat.
virtual void addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const
 Add latent heat flow rate to total.
template<class ThermoType>
const Foam::multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
template<class ThermoType>
const Foam::pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
template<class ThermoType>
Foam::tmp< Foam::volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &mixture) const
template<class ThermoType>
Foam::tmp< Foam::volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &mixture) const
template<class ThermoType>
Foam::tmp< Foam::volScalarFieldMwMixture (const pureMixture< ThermoType > &mixture) const
template<class ThermoType>
Foam::tmp< Foam::volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &mixture) const
Public Member Functions inherited from interfaceCompositionModel
 TypeName ("interfaceCompositionModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
 interfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 Construct from a dictionary and a phase pair.
virtual ~interfaceCompositionModel ()=default
 Destructor.
const word transferSpecie () const
 Return the transferring species name.
const phasePairpair () const
 The phase pair.
const multiphaseInterSystemfluid () const
 Return the multiphaseInterSystem this interface belongs to.
virtual tmp< volScalarFieldKexp (const volScalarField &field)=0
 Explicit full mass transfer.
virtual tmp< volScalarFieldKSp (label modelVariable, const volScalarField &field)=0
 Implicit mass transfer.
virtual tmp< volScalarFieldKSu (label modelVariable, const volScalarField &field)=0
 Explicit mass transfer.
virtual const dimensionedScalarTactivate () const noexcept=0
 Reference value.
virtual bool includeDivU () const noexcept
 Add/subtract alpha*div(U) as a source term for alpha, substituting div(U) = mDot(1/rho1 - 1/rho2).
bool includeVolChange ()
 Add volume change in pEq.
const wordvariable () const
 Returns the variable on which the model is based.

Additional Inherited Members

Public Types inherited from interfaceCompositionModel
enum  modelVariable { T , P , Y , alpha }
 Enumeration for variable based mass transfer models. More...
Static Public Member Functions inherited from interfaceCompositionModel
static autoPtr< interfaceCompositionModelNew (const dictionary &dict, const phasePair &pair)
Protected Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
template<class ThermoType>
const pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
 Get a reference to the local thermo for a pure mixture.
template<class ThermoType>
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 Get a reference to the local thermo for a multi component mixture.
template<class ThermoType>
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const
 Return mass fraction for a pureMixture equal to one.
template<class ThermoType>
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const
 Return mass fraction for speciesName.
template<class ThermoType>
tmp< volScalarFieldMwMixture (const pureMixture< ThermoType > &thermo) const
 Return moleculas weight of the mixture for pureMixture [Kg/mol].
template<class ThermoType>
tmp< volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &) const
 Return moleculas weight of the mixture for multiComponentMixture.
template<class ThermoType>
const pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
 Get a reference to the local thermo for a pure mixture.
template<class ThermoType>
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 Get a reference to the local thermo for a multi component mixture.
Protected Attributes inherited from InterfaceCompositionModel< Thermo, OtherThermo >
const Thermo & fromThermo_
 Thermo (from).
const OtherThermo & toThermo_
 Other Thermo (to).
const dimensionedScalar Le_
 Lewis number.
const Thermo & thermo_
 Thermo.
const OtherThermo & otherThermo_
 Other Thermo.
Protected Attributes inherited from interfaceCompositionModel
modelVariable modelVariable_
 Enumeration for the model variable.
bool includeVolChange_
 Add volume change in pEq.
const phasePairpair_
 Phase pair.
word speciesName_
 Names of the transferring specie.
const fvMeshmesh_
 Reference to mesh.
Static Protected Attributes inherited from interfaceCompositionModel
static const Enum< modelVariablemodelVariableNames_
 Selection names for the modelVariable.

Detailed Description

template<class Thermo, class OtherThermo>
class Foam::interfaceCompositionModels::Henry< Thermo, OtherThermo >

Henry's law for gas solubility in liquid. The concentration of a dissolved species in the liquid is proportional to its partial pressure in the gas. A dimensionless solubility, $k$, is given for each species. This is the ratio of the concentration of the species in the liquid to the corresponding concentration in the gas; i.e., $k =
c_{i,liq}/c_{i,gas}$. Mixing in the gas is assumed to be ideal.

Source files

Definition at line 57 of file Henry.H.

Constructor & Destructor Documentation

◆ Henry()

template<class Thermo, class OtherThermo>
Henry ( const dictionary & dict,
const phasePair & pair )

Construct from components.

Definition at line 26 of file Henry.C.

References dict, Foam::dimless, InterfaceCompositionModel< Thermo, OtherThermo >::InterfaceCompositionModel(), mesh, Foam::name(), interfaceCompositionModel::pair(), phase1, and timeName.

Here is the call graph for this function:

◆ ~Henry()

template<class Thermo, class OtherThermo>
virtual ~Henry ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

template<class Thermo, class OtherThermo>
TypeName ( "Henry< Thermo, OtherThermo >" )

Runtime type information.

◆ update()

template<class Thermo, class OtherThermo>
void update ( const volScalarField & Tf)
virtual

Update the composition.

Definition at line 58 of file Henry.C.

References Yf().

Here is the call graph for this function:

◆ Yf()

template<class Thermo, class OtherThermo>
Foam::tmp< Foam::volScalarField > Yf ( const word & speciesName,
const volScalarField & Tf ) const
virtual

The interface species fraction.

Reimplemented from InterfaceCompositionModel< Thermo, OtherThermo >.

Definition at line 74 of file Henry.C.

References InterfaceCompositionModel< Thermo, OtherThermo >::otherThermo_, and InterfaceCompositionModel< Thermo, OtherThermo >::thermo_.

Referenced by update().

Here is the caller graph for this function:

◆ YfPrime()

template<class Thermo, class OtherThermo>
Foam::tmp< Foam::volScalarField > YfPrime ( const word & speciesName,
const volScalarField & Tf ) const
virtual

The interface species fraction derivative w.r.t. temperature.

Definition at line 101 of file Henry.C.

References Foam::dimless, Foam::dimTemperature, IOobject::groupName(), GeometricField< scalar, fvPatchField, volMesh >::New(), and interfaceCompositionModel::pair_.

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • src/phaseSystemModels/reactingEuler/multiphaseSystem/interfacialCompositionModels/interfaceCompositionModels/Henry/Henry.H
  • src/phaseSystemModels/reactingEuler/multiphaseSystem/interfacialCompositionModels/interfaceCompositionModels/Henry/Henry.C