All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Henry.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::interfaceCompositionModels::Henry
26 
27 Description
28  Henry's law for gas solubility in liquid. The concentration of a dissolved
29  species in the liquid is proportional to its partial pressure in the gas. A
30  dimensionless solubility, \f$k\f$, is given for each species. This is the
31  ratio of the concentration of the species in the liquid to the
32  corresponding concentration in the gas; i.e., \f$k =
33  c_{i,liq}/c_{i,gas}\f$. Mixing in the gas is assumed to be ideal.
34 
35 SourceFiles
36  Henry.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef Henry_H
41 #define Henry_H
42 
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace interfaceCompositionModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class Henry Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class Henry
57 :
59 {
60  // Private Data
61 
62  //- Dimensionless solubility coefficients
63  const scalarList k_;
64 
65  //- The remaining solvent species fraction
66  volScalarField YSolvent_;
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("Henry");
73 
74 
75  // Constructors
76 
77  //- Construct from a dictionary and an interface
78  Henry
79  (
80  const dictionary& dict,
82  );
83 
84 
85  //- Destructor
86  virtual ~Henry();
87 
88 
89  // Member Functions
90 
91  //- Update the composition
92  virtual void update(const volScalarField& Tf);
93 
94  //- The interface species fraction
95  virtual tmp<volScalarField> Yf
96  (
97  const word& speciesName,
98  const volScalarField& Tf
99  ) const;
100 
101  //- The interface species fraction derivative w.r.t. temperature
103  (
104  const word& speciesName,
105  const volScalarField& Tf
106  ) const;
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace interfaceCompositionModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
Henry(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
const sidedPhaseInterface & interface() const
Return the interface.
virtual tmp< volScalarField > Yf(const word &speciesName, const volScalarField &Tf) const
The interface species fraction.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Generic base class for interface composition models. These models describe the composition in phase 1...
A class for handling words, derived from string.
Definition: word.H:59
virtual void update(const volScalarField &Tf)
Update the composition.
TypeName("Henry")
Runtime type information.
Henry&#39;s law for gas solubility in liquid. The concentration of a dissolved species in the liquid is p...
Definition: Henry.H:55
virtual tmp< volScalarField > YfPrime(const word &speciesName, const volScalarField &Tf) const
The interface species fraction derivative w.r.t. temperature.
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.