version 3.10-dev
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// 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_BENZENE_HH
13#define DUMUX_BENZENE_HH
14
16
20
21namespace Dumux {
22namespace Components {
23
30template <class Scalar>
32: public Components::Base<Scalar, Benzene<Scalar> >
33, public Components::Liquid<Scalar, Benzene<Scalar> >
34, public Components::Gas<Scalar, Benzene<Scalar> >
35{
37public:
41 static std::string name()
42 { return "benzene"; }
43
47 static constexpr Scalar molarMass()
48 { return 0.07811; }
49
53 static constexpr bool gasIsCompressible()
54 { return true; }
55
59 static constexpr bool liquidIsCompressible()
60 { return false; }
61
65 static constexpr bool gasViscosityIsConstant()
66 { return true; }
67
71 static constexpr bool liquidViscosityIsConstant()
72 { return true; }
73
81 {
84 pressure);
85 }
86
95
103 {
104 return 889.51;
105 }
106
114 {
116 }
117
125 {
126 return 1.12e-3;//[Pa s]
127 }
128};
129
130} // end namespace Components
131
132} // end namespace Dumux
133
134#endif
Base class for all components Components provide the thermodynamic relations for the liquid,...
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:35
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: benzene.hh:53
static std::string name()
A human readable name for the benzene.
Definition: benzene.hh:41
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure benzene.
Definition: benzene.hh:124
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of benzene steam at a given pressure and temperature .
Definition: benzene.hh:80
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:113
static constexpr bool gasViscosityIsConstant()
Returns true if the gas phase viscosity is constant.
Definition: benzene.hh:65
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: benzene.hh:59
static constexpr Scalar molarMass()
The molar mass in of benzene.
Definition: benzene.hh:47
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of steam in , depending on pressure and temperature.
Definition: benzene.hh:93
static constexpr bool liquidViscosityIsConstant()
Returns true if the liquid phase viscosity is constant.
Definition: benzene.hh:71
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:102
Interface for components that have a gas state.
Definition: gas.hh:29
Interface for components that have a liquid state.
Definition: liquid.hh:29
Relations valid for an ideal gas.
Definition: idealgas.hh:25
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:37
static constexpr Scalar molarDensity(Scalar temperature, Scalar pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: idealgas.hh:58
Base class for all components Components provide the thermodynamic relations for the liquid,...
Interface for components that have a gas state.
Relations valid for an ideal gas.
Interface for components that have a liquid state.
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