Henry Class 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:
Collaboration diagram for Henry:

Public Member Functions

 TypeName ("Henry")
 Runtime type information. More...
 
 Henry (const dictionary &dict, const phaseInterface &interface)
 Construct from a dictionary and an interface. More...
 
virtual ~Henry ()
 Destructor. More...
 
virtual void update (const volScalarField &Tf)
 Update the composition. More...
 
virtual tmp< volScalarField > Yf (const word &speciesName, const volScalarField &Tf) const
 The interface species fraction. More...
 
virtual tmp< volScalarField > YfPrime (const word &speciesName, const volScalarField &Tf) const
 The interface species fraction derivative w.r.t. temperature. More...
 
- Public Member Functions inherited from interfaceCompositionModel
 TypeName ("interfaceCompositionModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, interfaceCompositionModel, dictionary,(const dictionary &dict, const phaseInterface &interface),(dict, interface))
 
 interfaceCompositionModel (const dictionary &dict, const phaseInterface &interface)
 Construct from a dictionary and an interface. More...
 
virtual ~interfaceCompositionModel ()
 Destructor. More...
 
const sidedPhaseInterface & interface () const
 Return the interface. More...
 
const hashedWordList & species () const
 Return the transferring species names. More...
 
const rhoFluidMulticomponentThermo & thermo () const
 Return the thermo. More...
 
const rhoThermo & otherThermo () const
 Return the other thermo. More...
 
const rhoFluidMulticomponentThermo & otherMulticomponentThermo () const
 Return the other multicomponent thermo. More...
 
tmp< volScalarField > dY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
tmp< volScalarField > dYfPrime (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
tmp< volScalarField > D (const word &speciesName) const
 Mass diffusivity. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from interfaceCompositionModel
static autoPtr< interfaceCompositionModel > New (const dictionary &dict, const phaseInterface &interface, const bool outer=true)
 

Detailed Description

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 55 of file Henry.H.

Constructor & Destructor Documentation

◆ Henry()

Henry ( const dictionary &  dict,
const phaseInterface &  interface 
)

Construct from a dictionary and an interface.

Definition at line 43 of file Henry.C.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, List< T >::size(), and interfaceCompositionModel::species().

Here is the call graph for this function:

◆ ~Henry()

~Henry ( )
virtual

Destructor.

Definition at line 74 of file Henry.C.

Member Function Documentation

◆ TypeName()

TypeName ( "Henry"  )

Runtime type information.

◆ update()

void update ( const volScalarField &  Tf)
virtual

Update the composition.

Implements interfaceCompositionModel.

Definition at line 80 of file Henry.C.

References forAllConstIter.

◆ Yf()

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

The interface species fraction.

Implements interfaceCompositionModel.

Definition at line 91 of file Henry.C.

References found, and thermo.

◆ YfPrime()

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

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

Implements interfaceCompositionModel.

Definition at line 113 of file Henry.C.

References Foam::dimless, Foam::dimTemperature, IOobject::groupName(), Foam::name(), and GeometricField< Type, PatchField, GeoMesh >::New().

Here is the call graph for this function:

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