version 3.8
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// 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_N2_HH
13#define DUMUX_BINARY_COEFF_H2O_N2_HH
14
15#include "henryiapws.hh"
16#include "fullermethod.hh"
17
20
21namespace Dumux {
22namespace BinaryCoeff {
23
28class H2O_N2
29{
30public:
35 template <class Scalar>
36 static Scalar henry(Scalar temperature)
37 {
38 const Scalar E = 2388.8777;
39 const Scalar F = -14.9593;
40 const Scalar G = 42.0179;
41 const Scalar H = -29.4396;
42
43 return henryIAPWS(E, F, G, H, temperature);
44 }
45
53 template <class Scalar>
54 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
55 {
58
59 // atomic diffusion volumes
60 const Scalar SigmaNu[2] = { 13.1 /* H2O */, 18.5 /* N2 */ };
61 // molar masses [g/mol]
62 const Scalar M[2] = { H2O::molarMass()*Scalar(1e3), N2::molarMass()*Scalar(1e3) };
63
64 return fullerMethod(M, SigmaNu, temperature, pressure);
65 }
66
84 template <class Scalar>
85 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
86 {
87 const Scalar Texp = 273.15 + 25; // [K]
88 const Scalar Dexp = 2.01e-9; // [m^2/s]
89
90 return Dexp * temperature/Texp;
91 }
92};
93
94} // end namespace BinaryCoeff
95} // end namespace Dumux
96
97#endif
Binary coefficients for water and nitrogen.
Definition: h2o_n2.hh:29
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:85
static Scalar henry(Scalar temperature)
Henry coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:36
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and nitrogen.
Definition: h2o_n2.hh:54
Material properties of pure water .
Definition: h2o.hh:49
Properties of pure molecular nitrogen .
Definition: n2.hh:35
Various relations for molecular diffusion coefficients.
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:36
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:40
Material properties of pure water .
The IAPWS formulation of Henry coefficients in water.
Properties of pure molecular nitrogen .
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