3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
h2o_mesitylene.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_MESITYLENE_HH
25#define DUMUX_BINARY_COEFF_H2O_MESITYLENE_HH
26
27#include <algorithm>
28
29#include <dune/common/math.hh>
30
33
34namespace Dumux::BinaryCoeff {
35
41{
42public:
49 template <class Scalar>
50 static Scalar henry(Scalar temperature)
51 {
52 // after Sanders
53 constexpr Scalar sanderH = 1.7e-1; // [M/atm]
54 //conversion to our Henry definition
55 Scalar dumuxH = sanderH / 101.325; // has now [(mol/m^3)/Pa]
56 dumuxH *= 18.02e-6; // multiplied by molar volume of reference phase = water
57 return 1.0/dumuxH; // [Pa]
58 }
59
65 template <class Scalar>
66 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
67 {
70
71 using std::clamp;
72 temperature = clamp(temperature, 1e-9, 500.0); // regularization
73 pressure = clamp(pressure, 0.0, 1e8); // regularization
74
75 using std::sqrt;
76 using std::pow;
77 using Dune::power;
78 using std::exp;
79 constexpr Scalar M_m = 1e3*Mesitylene::molarMass(); // [g/mol] molecular weight of mesitylene
80 constexpr Scalar M_w = 1e3*H2O::molarMass(); // [g/mol] molecular weight of water
81 constexpr Scalar Tb_m = 437.9; // [K] boiling temperature of mesitylen
82 constexpr Scalar Tb_w = 373.15; // [K] boiling temperature of water (at p_atm)
83 constexpr Scalar V_B_w = 18.0; // [cm^3/mol] LeBas molal volume of water
84
85 using std::cbrt;
86 const Scalar sigma_w = 1.18*cbrt(V_B_w); // charact. length of air
87 constexpr Scalar T_scal_w = 1.15*Tb_w; // [K] (molec. energy of attraction/Boltzmann constant)
88 constexpr Scalar V_B_m = 162.6; // [cm^3/mol] LeBas molal volume of mesitylen
89 const Scalar sigma_m = 1.18*cbrt(V_B_m); // charact. length of mesitylen
90 const Scalar sigma_wm = 0.5*(sigma_w + sigma_m);
91 constexpr Scalar T_scal_m = 1.15*Tb_m;
92 const Scalar T_scal_wm = sqrt(T_scal_w*T_scal_m);
93
94 using std::max;
95 Scalar T_star = temperature/T_scal_wm;
96 T_star = max(T_star, 1e-5); // regularization
97
98 const Scalar Omega = 1.06036/pow(T_star,0.1561) + 0.193/exp(T_star*0.47635)
99 + 1.03587/exp(T_star*1.52996) + 1.76474/exp(T_star*3.89411);
100 const Scalar B_ = 0.00217 - 0.0005*sqrt(1.0/M_w + 1.0/M_m);
101 const Scalar Mr = (M_w + M_m)/(M_w*M_m);
102 const Scalar D_wm = (B_*pow(temperature, 1.6)*sqrt(Mr))
103 /(1e-5*pressure*power(sigma_wm, 2)*Omega); // [cm^2/s]
104
105 return D_wm*1e-4; // [m^2/s]
106 }
107
115 template <class Scalar>
116 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
117 {
118 return 1.e-9;
119 }
120};
121
122} // end namespace Dumux::BinaryCoeff
123
124#endif
Properties of mesitylene.
Material properties of pure water .
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
Definition: air_mesitylene.hh:31
Binary coefficients for water and mesitylene.
Definition: h2o_mesitylene.hh:41
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for mesitylene in liquid water.
Definition: h2o_mesitylene.hh:116
static Scalar henry(Scalar temperature)
Henry coefficient for mesitylene in liquid water.
Definition: h2o_mesitylene.hh:50
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and mesitylene.
Definition: h2o_mesitylene.hh:66
Material properties of pure water .
Definition: h2o.hh:60
mesitylene
Definition: mesitylene.hh:48