version 3.11-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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-FileCopyrightText: 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::Components {
22
29template <class Scalar>
31: public Components::Base<Scalar, Benzene<Scalar> >
32, public Components::Liquid<Scalar, Benzene<Scalar> >
33, public Components::Gas<Scalar, Benzene<Scalar> >
34{
36public:
40 static std::string name()
41 { return "benzene"; }
42
46 static constexpr Scalar molarMass()
47 { return 0.07811; }
48
52 static constexpr bool gasIsCompressible()
53 { return true; }
54
58 static constexpr bool liquidIsCompressible()
59 { return false; }
60
64 static constexpr bool gasViscosityIsConstant()
65 { return true; }
66
70 static constexpr bool liquidViscosityIsConstant()
71 { return true; }
72
80 {
83 pressure);
84 }
85
94
102 {
103 return 889.51;
104 }
105
113 {
115 }
116
124 {
125 return 1.12e-3;//[Pa s]
126 }
127};
128
129} // end namespace Dumux::Components
130
131#endif
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:46
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:50
A simple benzene component (LNAPL).
Definition: benzene.hh:34
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: benzene.hh:52
static std::string name()
A human readable name for the benzene.
Definition: benzene.hh:40
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of pure benzene.
Definition: benzene.hh:123
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of benzene steam at a given pressure and temperature .
Definition: benzene.hh:79
static Scalar liquidMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:112
static constexpr bool gasViscosityIsConstant()
Returns true if the gas phase viscosity is constant.
Definition: benzene.hh:64
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition: benzene.hh:58
static constexpr Scalar molarMass()
The molar mass in of benzene.
Definition: benzene.hh:46
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of steam in , depending on pressure and temperature.
Definition: benzene.hh:92
static constexpr bool liquidViscosityIsConstant()
Returns true if the liquid phase viscosity is constant.
Definition: benzene.hh:70
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure benzene at a given pressure and temperature .
Definition: benzene.hh:101
Interface for components that have a gas state.
Definition: gas.hh:28
Interface for components that have a liquid state.
Definition: liquid.hh:28
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.
Definition: air.hh:22
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