3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
h2o_n2.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_N2_HH
25#define DUMUX_BINARY_COEFF_H2O_N2_HH
26
27#include "henryiapws.hh"
28#include "fullermethod.hh"
29
32
33namespace Dumux {
34namespace BinaryCoeff {
35
40class H2O_N2
41{
42public:
47 template <class Scalar>
48 static Scalar henry(Scalar temperature)
49 {
50 const Scalar E = 2388.8777;
51 const Scalar F = -14.9593;
52 const Scalar G = 42.0179;
53 const Scalar H = -29.4396;
54
55 return henryIAPWS(E, F, G, H, temperature);
56 }
57
65 template <class Scalar>
66 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
67 {
70
71 // atomic diffusion volumes
72 const Scalar SigmaNu[2] = { 13.1 /* H2O */, 18.5 /* N2 */ };
73 // molar masses [g/mol]
74 const Scalar M[2] = { H2O::molarMass()*Scalar(1e3), N2::molarMass()*Scalar(1e3) };
75
76 return fullerMethod(M, SigmaNu, temperature, pressure);
77 }
78
96 template <class Scalar>
97 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
98 {
99 const Scalar Texp = 273.15 + 25; // [K]
100 const Scalar Dexp = 2.01e-9; // [m^2/s]
101
102 return Dexp * temperature/Texp;
103 }
104};
105
106} // end namespace BinaryCoeff
107} // end namespace Dumux
108
109#endif
Various relations for molecular diffusion coefficients.
The IAPWS formulation of Henry coefficients in water.
Properties of pure molecular nitrogen .
Material properties of pure water .
Scalar fullerMethod(const Scalar *M, const Scalar *SigmaNu, const Scalar temperature, const Scalar pressure)
Estimate binary diffusion coefficients in gases according to the method by Fuller.
Definition: fullermethod.hh:48
Scalar henryIAPWS(Scalar E, Scalar F, Scalar G, Scalar H, Scalar temperature)
The Henry constants in liquid water using the IAPWS 2004 formulation.
Definition: henryiapws.hh:52
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 nitrogen.
Definition: h2o_n2.hh:41
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:97
static Scalar henry(Scalar temperature)
Henry coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:48
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and nitrogen.
Definition: h2o_n2.hh:66
Material properties of pure water .
Definition: h2o.hh:60
Properties of pure molecular nitrogen .
Definition: n2.hh:47