version 3.8
air_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// SPDX-FileCopyrightInfo: 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_AIR_MESITYLENE_HH
13#define DUMUX_BINARY_COEFF_AIR_MESITYLENE_HH
14
17
18namespace Dumux {
19namespace BinaryCoeff {
20
26{
27public:
32 template <class Scalar>
33 static Scalar henry(Scalar temperature)
34 { DUNE_THROW(Dune::NotImplemented,
35 "Henry coefficient of air in mesitylene");
36 }
37
46 template <class Scalar>
47 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
48 {
51
52 using std::min;
53 using std::max;
54 temperature = max(temperature, 1e-9); // regularization
55 temperature = min(temperature, 500.0); // regularization
56 pressure = max(pressure, 0.0); // regularization
57 pressure = min(pressure, 1e8); // regularization
58
59 using std::pow;
60 using std::sqrt;
61 using std::exp;
62 using Dune::power;
63 const Scalar M_m = 1e3*Mesitylene::molarMass(); // [g/mol] molecular weight of mesitylene
64 const Scalar M_a = 1e3*Air::molarMass(); // [g/mol] molecular weight of air
65 const Scalar Tb_m = 437.9; // [K] boiling temperature of mesitylene
66 const Scalar sigma_a = 3.711; // charact. length of air
67 const Scalar T_scal_a = 78.6; // [K] (molec. energy of attraction/Boltzmann constant)
68 const Scalar V_B_m = 162.6; // [cm^3/mol] LeBas molal volume of mesitylene
69
70 using std::cbrt;
71 const Scalar sigma_m = 1.18*cbrt(V_B_m); // charact. length of mesitylene
72 const Scalar sigma_am = 0.5*(sigma_a + sigma_m);
73 const Scalar T_scal_m = 1.15*Tb_m;
74 const Scalar T_scal_am = sqrt(T_scal_a*T_scal_m);
75
76 Scalar T_star = temperature/T_scal_am;
77 T_star = max(T_star, 1e-5); // regularization
78
79 const Scalar Omega = 1.06036/pow(T_star, 0.1561) + 0.193/exp(T_star*0.47635)
80 + 1.03587/exp(T_star*1.52996) + 1.76474/exp(T_star*3.89411);
81 const Scalar B_ = 0.00217 - 0.0005*sqrt(1.0/M_a + 1.0/M_m);
82 const Scalar Mr = (M_a + M_m)/(M_a*M_m);
83 const Scalar D_am = (B_*sqrt(temperature*temperature*temperature*Mr))
84 /(1e-5*pressure*power(sigma_am, 2) * Omega); // [cm^2/s]
85
86 return 1e-4*D_am; // [m^2/s]
87 }
88
96 template <class Scalar>
97 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
98 {
99 return 1e-9;
100 }
101};
102
103} // end namespace BinaryCoeff
104} // end namespace Dumux
105
106#endif
A simple class for the air fluid properties.
Binary coefficients for water and mesitylene.
Definition: air_mesitylene.hh:26
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for air and mesitylene in liquid water.
Definition: air_mesitylene.hh:97
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for air and mesitylene. I used the method according to Wilke and Lee se...
Definition: air_mesitylene.hh:47
static Scalar henry(Scalar temperature)
Henry coefficient for mesitylene in air.
Definition: air_mesitylene.hh:33
A class for the air fluid properties.
Definition: air.hh:35
mesitylene
Definition: mesitylene.hh:36
Properties of mesitylene.
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
Definition: adapt.hh:17