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...
Public Member Functions | |
| TypeName ("Henry") | |
| Runtime type information. More... | |
| Henry (const dictionary &dict, const phasePair &pair) | |
| Construct from components. More... | |
| virtual | ~Henry ()=default |
| 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< Thermo, OtherThermo > | |
| InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
| Construct from components. More... | |
| ~InterfaceCompositionModel ()=default | |
| Destructor. More... | |
| virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. More... | |
| virtual tmp< volScalarField > | D (const word &speciesName) const |
| Mass diffusivity. More... | |
| virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
| Latent heat. More... | |
| virtual void | addMDotL (const volScalarField &K, const volScalarField &Tf, volScalarField &mDotL, volScalarField &mDotLPrime) const |
| Add latent heat flow rate to total. More... | |
| InterfaceCompositionModel (const dictionary &dict, const phasePair &pair) | |
| Construct from components. More... | |
| ~InterfaceCompositionModel ()=default | |
| Destructor. More... | |
| virtual tmp< volScalarField > | dY (const word &speciesName, const volScalarField &Tf) const |
| Mass fraction difference between the interface and the field. More... | |
| virtual tmp< volScalarField > | D (const word &speciesName) const |
| Mass diffusivity of the local thermo. More... | |
| virtual tmp< volScalarField > | L (const word &speciesName, const volScalarField &Tf) const |
| Latent heat (to - from)(thermo - otherThermo) More... | |
| 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 |
Public Member Functions inherited from interfaceCompositionModel | |
| TypeName ("interfaceCompositionModel") | |
| Runtime type information. More... | |
| 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. More... | |
| virtual | ~interfaceCompositionModel ()=default |
| Destructor. More... | |
| const hashedWordList & | species () const |
| Return the transferring species names. More... | |
| bool | transports (word &speciesName) const |
| TypeName ("interfaceCompositionModel") | |
| Runtime type information. More... | |
| 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. More... | |
| virtual | ~interfaceCompositionModel ()=default |
| Destructor. More... | |
| const word | transferSpecie () const |
| Return the transferring species name. More... | |
| const phasePair & | pair () const |
| Return pair. More... | |
| virtual tmp< volScalarField > | Kexp (const volScalarField &field)=0 |
| Explicit full mass transfer. More... | |
| virtual tmp< volScalarField > | KSp (label modelVariable, const volScalarField &field)=0 |
| Implicit mass transfer. More... | |
| virtual tmp< volScalarField > | KSu (label modelVariable, const volScalarField &field)=0 |
| Explicit mass transfer. More... | |
| virtual const dimensionedScalar & | Tactivate () const =0 |
| Reference value. More... | |
| virtual bool | includeDivU () |
| bool | includeVolChange () |
| Add volume change in pEq. More... | |
| const word | variable () const |
| Returns the variable on which the model is based. More... | |
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< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
| static autoPtr< interfaceCompositionModel > | New (const dictionary &dict, const phasePair &pair) |
Public Attributes inherited from interfaceCompositionModel | |
| modelVariable | modelVariable_ |
| Enumeration for model variables. More... | |
| bool | includeVolChange_ |
| Add volume change in pEq. More... | |
Static Public Attributes inherited from interfaceCompositionModel | |
| static const Enum< modelVariable > | modelVariableNames |
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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| template<class ThermoType > | |
| tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const pureMixture< ThermoType > &thermo) const |
| Return mass fraction for a pureMixture equal to one. More... | |
| template<class ThermoType > | |
| tmp< volScalarField > | getSpecieMassFraction (const word &speciesName, const multiComponentMixture< ThermoType > &thermo) const |
| Return mass fraction for speciesName. More... | |
| template<class ThermoType > | |
| tmp< volScalarField > | MwMixture (const pureMixture< ThermoType > &thermo) const |
| Return moleculas weight of the mixture for pureMixture [Kg/mol]. More... | |
| template<class ThermoType > | |
| tmp< volScalarField > | MwMixture (const multiComponentMixture< ThermoType > &) const |
| Return moleculas weight of the mixture for multiComponentMixture. More... | |
Protected Attributes inherited from InterfaceCompositionModel< Thermo, OtherThermo > | |
| const Thermo & | thermo_ |
| Thermo. More... | |
| const OtherThermo & | otherThermo_ |
| Other Thermo. More... | |
| const dimensionedScalar | Le_ |
| Lewis number. More... | |
| const Thermo & | fromThermo_ |
| Thermo (from) More... | |
| const OtherThermo & | toThermo_ |
| Other Thermo (to) More... | |
Protected Attributes inherited from interfaceCompositionModel | |
| const phasePair & | pair_ |
| Phase pair. More... | |
| const hashedWordList | speciesNames_ |
| Names of the transferring species. More... | |
| word | speciesName_ |
| Names of the transferring specie. More... | |
| const fvMesh & | mesh_ |
| Reference to mesh. More... | |
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.
| Henry | ( | const dictionary & | dict, |
| const phasePair & | pair | ||
| ) |
Construct from components.
Definition at line 34 of file Henry.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
|
virtualdefault |
Destructor.
| TypeName | ( | "Henry< Thermo, OtherThermo >" | ) |
Runtime type information.
|
virtual |
Update the composition.
Implements interfaceCompositionModel.
|
virtual |
The interface species fraction.
Reimplemented from InterfaceCompositionModel< Thermo, OtherThermo >.
|
virtual |
The interface species fraction derivative w.r.t. temperature.
Implements interfaceCompositionModel.
Definition at line 109 of file Henry.C.
References Foam::dimless, Foam::dimTemperature, and Foam::New().