version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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-FileCopyrightText: 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::BinaryCoeff {
22
27class H2O_N2
28{
29public:
34 template <class Scalar>
35 static Scalar henry(Scalar temperature)
36 {
37 const Scalar E = 2388.8777;
38 const Scalar F = -14.9593;
39 const Scalar G = 42.0179;
40 const Scalar H = -29.4396;
41
42 return henryIAPWS(E, F, G, H, temperature);
43 }
44
52 template <class Scalar>
53 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
54 {
57
58 // atomic diffusion volumes
59 const Scalar SigmaNu[2] = { 13.1 /* H2O */, 18.5 /* N2 */ };
60 // molar masses [g/mol]
61 const Scalar M[2] = { H2O::molarMass()*Scalar(1e3), N2::molarMass()*Scalar(1e3) };
62
63 return fullerMethod(M, SigmaNu, temperature, pressure);
64 }
65
83 template <class Scalar>
84 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
85 {
86 const Scalar Texp = 273.15 + 25; // [K]
87 const Scalar Dexp = 2.01e-9; // [m^2/s]
88
89 return Dexp * temperature/Texp;
90 }
91};
92
93} // end namespace Dumux::BinaryCoeff
94
95#endif
Binary coefficients for water and nitrogen.
Definition: h2o_n2.hh:28
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:84
static Scalar henry(Scalar temperature)
Henry coefficient for molecular nitrogen in liquid water.
Definition: h2o_n2.hh:35
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and nitrogen.
Definition: h2o_n2.hh:53
Material properties of pure water .
Definition: h2o.hh:48
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 .
Definition: air_mesitylene.hh:18
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