3.2-git
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
29
30namespace Dumux {
31namespace BinaryCoeff {
32
38{
39public:
46 template <class Scalar>
47 static Scalar henry(Scalar temperature)
48 {
49 // after Sanders
50 Scalar sanderH = 1.7e-1; // [M/atm]
51 //conversion to our Henry definition
52 Scalar dumuxH = sanderH / 101.325; // has now [(mol/m^3)/Pa]
53 dumuxH *= 18.02e-6; // multiplied by molar volume of reference phase = water
54 return 1.0/dumuxH; // [Pa]
55 }
56
62 template <class Scalar>
63 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
64 {
67
68 using std::min;
69 using std::max;
70 temperature = max(temperature, 1e-9); // regularization
71 temperature = min(temperature, 500.0); // regularization
72 pressure = max(pressure, 0.0); // regularization
73 pressure = min(pressure, 1e8); // regularization
74
75 using std::sqrt;
76 using std::pow;
77 using std::exp;
78 const Scalar M_m = 1e3*Mesitylene::molarMass(); // [g/mol] molecular weight of mesitylene
79 const Scalar M_w = 1e3*H2O::molarMass(); // [g/mol] molecular weight of water
80 const Scalar Tb_m = 437.9; // [K] boiling temperature of mesitylen
81 const Scalar Tb_w = 373.15; // [K] boiling temperature of water (at p_atm)
82 const Scalar V_B_w = 18.0; // [cm^3/mol] LeBas molal volume of water
83
84 using std::cbrt;
85 const Scalar sigma_w = 1.18*cbrt(V_B_w); // charact. length of air
86 const Scalar T_scal_w = 1.15*Tb_w; // [K] (molec. energy of attraction/Boltzmann constant)
87 const Scalar V_B_m = 162.6; // [cm^3/mol] LeBas molal volume of mesitylen
88 const Scalar sigma_m = 1.18*cbrt(V_B_m); // charact. length of mesitylen
89 const Scalar sigma_wm = 0.5*(sigma_w + sigma_m);
90 const Scalar T_scal_m = 1.15*Tb_m;
91 const Scalar T_scal_wm = sqrt(T_scal_w*T_scal_m);
92
93 Scalar T_star = temperature/T_scal_wm;
94 T_star = max(T_star, 1e-5); // regularization
95
96 const Scalar Omega = 1.06036/pow(T_star,0.1561) + 0.193/exp(T_star*0.47635)
97 + 1.03587/exp(T_star*1.52996) + 1.76474/exp(T_star*3.89411);
98 const Scalar B_ = 0.00217 - 0.0005*sqrt(1.0/M_w + 1.0/M_m);
99 const Scalar Mr = (M_w + M_m)/(M_w*M_m);
100 const Scalar D_wm = (B_*pow(temperature, 1.6)*sqrt(Mr))
101 /(1e-5*pressure*pow(sigma_wm, 2)*Omega); // [cm^2/s]
102
103 return D_wm*1e-4; // [m^2/s]
104 }
105
113 template <class Scalar>
114 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
115 {
116 return 1.e-9;
117 }
118};
119
120} // end namespace BinaryCoeff
121} // end namespace Dumux
122
123#endif
Material properties of pure water .
Properties of mesitylene.
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 mesitylene.
Definition: h2o_mesitylene.hh:38
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for mesitylene in liquid water.
Definition: h2o_mesitylene.hh:114
static Scalar henry(Scalar temperature)
Henry coefficient for mesitylene in liquid water.
Definition: h2o_mesitylene.hh:47
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for molecular water and mesitylene.
Definition: h2o_mesitylene.hh:63
Material properties of pure water .
Definition: h2o.hh:61
mesitylene
Definition: mesitylene.hh:48