3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
h2o_air.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_BINARY_COEFF_H2O_AIR_HH
25#define DUMUX_BINARY_COEFF_H2O_AIR_HH
26
27#include <cmath>
28
29namespace Dumux {
30namespace BinaryCoeff {
31
37{
38public:
47 template <class Scalar>
48 static Scalar henry(Scalar temperature)
49 {
50 using std::exp;
51 Scalar r = (0.8942+1.47*exp(-0.04394*(temperature-273.15)))*1.E-10;
52
53 return 1./r;
54 }
55
67 template <class Scalar>
68 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
69 {
70 const Scalar Theta=1.8;
71 const Scalar Daw=2.13e-5; /* reference value */
72 const Scalar pg0=1.e5; /* reference pressure */
73 const Scalar T0=273.15; /* reference temperature */
74 Scalar Dgaw;
75
76 using std::pow;
77 Dgaw=Daw*(pg0/pressure)*pow((temperature/T0),Theta);
78
79 return Dgaw;
80 }
81
100 template <class Scalar>
101 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
102 {
103 const Scalar Texp = 273.15 + 25; // [K]
104 const Scalar Dexp = 2.01e-9; // [m^2/s]
105 return Dexp * temperature/Texp;
106 }
107};
108
109} // end namespace BinaryCoeff
110} // end namespace Dumux
111
112#endif
Definition: adapt.hh:29
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
Binary coefficients for water and air.
Definition: h2o_air.hh:37
static Scalar henry(Scalar temperature)
Henry coefficient for air in liquid water.
Definition: h2o_air.hh:48
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and air.
Definition: h2o_air.hh:68
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_air.hh:101