Public Member Functions | List of all members
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...

Inheritance diagram for Henry< Thermo, OtherThermo >:
Inheritance graph
[legend]
Collaboration diagram for Henry< Thermo, OtherThermo >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("Henry")
 
 Henry (const dictionary &dict, const phasePair &pair)
 
virtual ~Henry ()=default
 
virtual void update (const volScalarField &Tf)
 
virtual tmp< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldYfPrime (const word &speciesName, const volScalarField &Tf) const
 
- Public Member Functions inherited from InterfaceCompositionModel< Thermo, OtherThermo >
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
 ~InterfaceCompositionModel ()=default
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 
 InterfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
 ~InterfaceCompositionModel ()=default
 
virtual tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 
virtual tmp< volScalarFieldD (const word &speciesName) const
 
virtual tmp< volScalarFieldL (const word &speciesName, const volScalarField &Tf) const
 
virtual void addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const
 
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")
 
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
 
 interfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
virtual ~interfaceCompositionModel ()=default
 
const word transferSpecie () const
 
const phasePairpair () const
 
virtual tmp< volScalarFieldKexp (const volScalarField &field)=0
 
virtual tmp< volScalarFieldKSp (label modelVariable, const volScalarField &field)=0
 
virtual tmp< volScalarFieldKSu (label modelVariable, const volScalarField &field)=0
 
virtual const dimensionedScalarTactivate () const noexcept=0
 
virtual bool includeDivU () const noexcept
 
bool includeVolChange ()
 
const wordvariable () const
 
 TypeName ("interfaceCompositionModel")
 
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phasePair &pair),(dict, pair))
 
 interfaceCompositionModel (const dictionary &dict, const phasePair &pair)
 
virtual ~interfaceCompositionModel ()=default
 
const hashedWordListspecies () const
 
bool transports (word &speciesName) const
 

Additional Inherited Members

- Public Types inherited from interfaceCompositionModel
enum  modelVariable { T, P, Y, alpha }
 
- Static Public Member Functions inherited from interfaceCompositionModel
static autoPtr< interfaceCompositionModelNew (const dictionary &dict, const phasePair &pair)
 
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
 
template<class ThermoType >
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 
template<class ThermoType >
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldgetSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const pureMixture< ThermoType > &thermo) const
 
template<class ThermoType >
tmp< volScalarFieldMwMixture (const multiComponentMixture< ThermoType > &) const
 
template<class ThermoType >
const pureMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const pureMixture< ThermoType > &globalThermo) const
 
template<class ThermoType >
const multiComponentMixture< ThermoType >::thermoType & getLocalThermo (const word &speciesName, const multiComponentMixture< ThermoType > &globalThermo) const
 
- Protected Attributes inherited from InterfaceCompositionModel< Thermo, OtherThermo >
const Thermo & fromThermo_
 
const OtherThermo & toThermo_
 
const dimensionedScalar Le_
 
const Thermo & thermo_
 
const OtherThermo & otherThermo_
 
- Protected Attributes inherited from interfaceCompositionModel
modelVariable modelVariable_
 
bool includeVolChange_
 
const phasePairpair_
 
word speciesName_
 
const fvMeshmesh_
 
const hashedWordList speciesNames_
 
- Static Protected Attributes inherited from interfaceCompositionModel
static const Enum< modelVariablemodelVariableNames_
 

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()

Henry ( const dictionary dict,
const phasePair pair 
)

Definition at line 27 of file Henry.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ ~Henry()

virtual ~Henry ( )
virtualdefault

Member Function Documentation

◆ TypeName()

TypeName ( "Henry< Thermo, OtherThermo >"  )

◆ update()

void update ( const volScalarField Tf)
virtual

Implements interfaceCompositionModel.

Definition at line 59 of file Henry.C.

◆ Yf()

Foam::tmp< Foam::volScalarField > Yf ( const word speciesName,
const volScalarField Tf 
) const
virtual

Reimplemented from InterfaceCompositionModel< Thermo, OtherThermo >.

Definition at line 75 of file Henry.C.

◆ YfPrime()

Foam::tmp< Foam::volScalarField > YfPrime ( const word speciesName,
const volScalarField Tf 
) const
virtual

Implements interfaceCompositionModel.

Definition at line 102 of file Henry.C.

References Foam::dimless, Foam::dimTemperature, and Foam::New().

Here is the call graph for this function:

The documentation for this class was generated from the following files: