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