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< volScalarFieldYf (const word &speciesName, const volScalarField &Tf) const
 The interface species fraction. More...
 
virtual tmp< volScalarFieldYfPrime (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 sidedPhaseInterfaceinterface () const
 Return the interface. More...
 
const hashedWordListspecies () const
 Return the transferring species names. More...
 
const rhoFluidMulticomponentThermothermo () const
 Return the thermo. More...
 
const rhoThermootherThermo () const
 Return the other thermo. More...
 
const rhoFluidMulticomponentThermootherMulticomponentThermo () const
 Return the other multicomponent thermo. More...
 
tmp< volScalarFielddY (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
tmp< volScalarFielddYfPrime (const word &speciesName, const volScalarField &Tf) const
 Mass fraction difference between the interface and the field. More...
 
tmp< volScalarFieldD (const word &speciesName) const
 Mass diffusivity. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from interfaceCompositionModel
static autoPtr< interfaceCompositionModelNew (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: