3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
benzene.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_BENZENE_HH
25#define DUMUX_BENZENE_HH
26
28
32
33namespace Dumux {
34namespace Components {
35
42template <class Scalar>
44: public Components::Base<Scalar, Benzene<Scalar> >
45, public Components::Liquid<Scalar, Benzene<Scalar> >
46, public Components::Gas<Scalar, Benzene<Scalar> >
47{
49public:
53 static std::string name()
54 { return "benzene"; }
55
59 static constexpr Scalar molarMass()
60 { return 0.07811; }
61
69 {
72 pressure);
73 }
74
83
91 {
92 return 889.51;
93 }
94
102 {
104 }
105
113 {
114 return 1.12e-3;//[Pa s]
115 }
116};
117
118} // end namespace Components
119
120} // end namespace Dumux
121
122#endif
Interface for components that have a gas state.
Interface for components that have a liquid state.
Relations valid for an ideal gas.
make the local view function available whenever we use the grid geometry
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
Definition: components/base.hh:47
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:51
A simple benzene component (LNAPL).
Definition: benzene.hh:47
static std::string name()
A human readable name for the benzene.
Definition: benzene.hh:53
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure benzene.
Definition: benzene.hh:112
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of benzene steam at a given pressure and temperature .
Definition: benzene.hh:68
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:101
static constexpr Scalar molarMass()
The molar mass in of benzene.
Definition: benzene.hh:59
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of steam in , depending on pressure and temperature.
Definition: benzene.hh:81
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:90
Interface for components that have a gas state.
Definition: gas.hh:41
Interface for components that have a liquid state.
Definition: liquid.hh:41
Relations valid for an ideal gas.
Definition: idealgas.hh:37
static constexpr Scalar density(Scalar avgMolarMass, Scalar temperature, Scalar pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition: idealgas.hh:49
static constexpr Scalar molarDensity(Scalar temperature, Scalar pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: idealgas.hh:70
Base class for all components Components provide the thermodynamic relations for the liquid,...