version 3.8
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
12#ifndef DUMUX_BINARY_COEFF_H2O_AIR_HH
13#define DUMUX_BINARY_COEFF_H2O_AIR_HH
14
15#include <cmath>
16
17namespace Dumux {
18namespace BinaryCoeff {
19
25{
26public:
35 template <class Scalar>
36 static Scalar henry(Scalar temperature)
37 {
38 using std::exp;
39 Scalar r = (0.8942+1.47*exp(-0.04394*(temperature-273.15)))*1.E-10;
40
41 return 1./r;
42 }
43
55 template <class Scalar>
56 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
57 {
58 const Scalar Theta=1.8;
59 const Scalar Daw=2.13e-5; /* reference value */
60 const Scalar pg0=1.e5; /* reference pressure */
61 const Scalar T0=273.15; /* reference temperature */
62 Scalar Dgaw;
63
64 using std::pow;
65 Dgaw=Daw*(pg0/pressure)*pow((temperature/T0),Theta);
66
67 return Dgaw;
68 }
69
88 template <class Scalar>
89 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
90 {
91 const Scalar Texp = 273.15 + 25; // [K]
92 const Scalar Dexp = 2.01e-9; // [m^2/s]
93 return Dexp * temperature/Texp;
94 }
95};
96
97} // end namespace BinaryCoeff
98} // end namespace Dumux
99
100#endif
Binary coefficients for water and air.
Definition: h2o_air.hh:25
static Scalar henry(Scalar temperature)
Henry coefficient for air in liquid water.
Definition: h2o_air.hh:36
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and air.
Definition: h2o_air.hh:56
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_air.hh:89
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:39
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
Definition: adapt.hh:17