version 3.10-dev
air_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// 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_XYLENE_HH
13#define DUMUX_BINARY_COEFF_AIR_XYLENE_HH
14
15#include <algorithm>
16
17#include <dune/common/math.hh>
18
21
22namespace Dumux::BinaryCoeff {
23
29{
30public:
35 template <class Scalar>
36 static Scalar henry(Scalar temperature)
37 { DUNE_THROW(Dune::NotImplemented,
38 "Henry coefficient of air in xylene");
39 }
40
49 template <class Scalar>
50 static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
51 {
54
55 using std::clamp;
56 temperature = clamp(temperature, 1e-9, 500.0); // regularization
57 pressure = clamp(pressure, 0.0, 1e8); // regularization
58
59 using std::pow;
60 using Dune::power;
61 using std::sqrt;
62 using std::exp;
63 const Scalar M_x = 1e3*Xylene::molarMass(); // [g/mol] molecular weight of xylene
64 const Scalar M_a = 1e3*Air::molarMass(); // [g/mol] molecular weight of air
65 const Scalar Tb_x = 412.0; // [K] boiling temperature of xylene
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_x = 140.4; // [cm^3/mol] LeBas molal volume of xylene
69 const Scalar sigma_x = 1.18*pow(V_B_x, 0.333); // charact. length of xylene
70 const Scalar sigma_ax = 0.5*(sigma_a + sigma_x);
71 const Scalar T_scal_x = 1.15*Tb_x;
72 const Scalar T_scal_ax = sqrt(T_scal_a*T_scal_x);
73
74 using std::max;
75 Scalar T_star = temperature/T_scal_ax;
76 T_star = max(T_star, 1e-5); // regularization
77
78 const Scalar Omega = 1.06036/pow(T_star, 0.1561) + 0.193/exp(T_star*0.47635)
79 + 1.03587/exp(T_star*1.52996) + 1.76474/exp(T_star*3.89411);
80 const Scalar B_ = 0.00217 - 0.0005*sqrt(1.0/M_a + 1.0/M_x);
81 const Scalar Mr = (M_a + M_x)/(M_a*M_x);
82 const Scalar D_ax = (B_*pow(temperature,1.5)*sqrt(Mr))
83 /(1e-5*pressure*power(sigma_ax, 2)*Omega); // [cm^2/s]
84
85 return D_ax*1e-4; // [m^2/s]
86 }
87
95 template <class Scalar>
96 static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
97 {
98 return 1e-9;
99 }
100};
101
102} // end namespace Dumux::BinaryCoeff
103
104#endif
A simple class for the air fluid properties.
Binary coefficients for air and xylene.
Definition: air_xylene.hh:29
static Scalar henry(Scalar temperature)
Henry coefficient for mesitylene in air.
Definition: air_xylene.hh:36
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
Binary diffusion coefficient for air and xylene. method according to Wilke and Lee see W....
Definition: air_xylene.hh:50
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
Diffusion coefficient for air and xylene in liquid water.
Definition: air_xylene.hh:96
A class for the air fluid properties.
Definition: air.hh:35
Properties of xylene.
Definition: xylene.hh:37
Definition: air_mesitylene.hh:19
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
Properties of xylene.