version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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-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_AIR_HH
13#define DUMUX_BINARY_COEFF_H2O_AIR_HH
14
15#include <cmath>
16
17namespace Dumux::BinaryCoeff {
18
24{
25public:
34 template <class Scalar>
35 static Scalar henry(Scalar temperature)
36 {
37 using std::exp;
38 Scalar r = (0.8942+1.47*exp(-0.04394*(temperature-273.15)))*1.E-10;
39
40 return 1./r;
41 }
42
54 template <class Scalar>
55 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
56 {
57 const Scalar Theta=1.8;
58 const Scalar Daw=2.13e-5; /* reference value */
59 const Scalar pg0=1.e5; /* reference pressure */
60 const Scalar T0=273.15; /* reference temperature */
61 Scalar Dgaw;
62
63 using std::pow;
64 Dgaw=Daw*(pg0/pressure)*pow((temperature/T0),Theta);
65
66 return Dgaw;
67 }
68
87 template <class Scalar>
88 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
89 {
90 const Scalar Texp = 273.15 + 25; // [K]
91 const Scalar Dexp = 2.01e-9; // [m^2/s]
92 return Dexp * temperature/Texp;
93 }
94};
95
96} // end namespace Dumux::BinaryCoeff
97
98#endif
Binary coefficients for water and air.
Definition: h2o_air.hh:24
static Scalar henry(Scalar temperature)
Henry coefficient for air in liquid water.
Definition: h2o_air.hh:35
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and air.
Definition: h2o_air.hh:55
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for molecular nitrogen in liquid water.
Definition: h2o_air.hh:88
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