BlackoilComponent.hpp
Go to the documentation of this file.
1/*
2 Copyright 2010 SINTEF ICT, Applied Mathematics.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM 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 OPM 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 OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef OPM_BLACKOILCOMPONENT_HEADER_INCLUDED
21#define OPM_BLACKOILCOMPONENT_HEADER_INCLUDED
22
23
24#include <dune/common/stdstreams.hh>
25
26namespace Dumux
27{
28
38template <class Scalar>
40{
41public:
45 static const char *name()
46 {
47 return "BlackoilComponent";
48 }
49
53 static Scalar molarMass()
54 { DUNE_THROW(Dune::NotImplemented, "Component::molarMass()"); }
55
59 static Scalar criticalTemperature()
60 { DUNE_THROW(Dune::NotImplemented, "Component::criticalTemperature()"); }
61
65 static Scalar criticalPressure()
66 { DUNE_THROW(Dune::NotImplemented, "Component::criticalPressure()"); }
67
71 static Scalar tripleTemperature()
72 { DUNE_THROW(Dune::NotImplemented, "Component::tripleTemperature()"); }
73
77 static Scalar triplePressure()
78 { DUNE_THROW(Dune::NotImplemented, "Component::triplePressure()"); }
79
86 static Scalar vaporPressure(Scalar T)
87 { DUNE_THROW(Dune::NotImplemented, "Component::vaporPressure()"); }
88
95 static Scalar gasDensity(Scalar temperature, Scalar pressure)
96 { DUNE_THROW(Dune::NotImplemented, "Component::density()"); }
97
104 static Scalar liquidDensity(Scalar temperature, Scalar pressure)
105 { DUNE_THROW(Dune::NotImplemented, "Component::density()"); }
106
113 static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
114 { DUNE_THROW(Dune::NotImplemented, "Component::gasEnthalpy()"); }
115
122 static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
123 { DUNE_THROW(Dune::NotImplemented, "Component::liquidEnthalpy()"); }
124
131 static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
132 { DUNE_THROW(Dune::NotImplemented, "Component::gasInternalEnergy()"); }
133
140 static const Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
141 { DUNE_THROW(Dune::NotImplemented, "Component::liquidInternalEnergy()"); }
142
149 static Scalar gasViscosity(Scalar temperature, Scalar pressure)
150 { DUNE_THROW(Dune::NotImplemented, "Component::gasViscosity()"); }
151
158 static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
159 { DUNE_THROW(Dune::NotImplemented, "Component::liquidViscosity()"); }
160
161};
162
163} // end namepace
164
165#endif // OPM_BLACKOILCOMPONENT_HEADER_INCLUDED
A component class for the black oil model, intended to be used for all three components.
Definition: BlackoilComponent.hpp:40
static Scalar liquidViscosity(Scalar temperature, Scalar pressure)
The dynamic liquid viscosity [Pa*s] of the pure component.
Definition: BlackoilComponent.hpp:158
static Scalar vaporPressure(Scalar T)
The vapor pressure in [Pa] of the component at a given temperature in [K].
Definition: BlackoilComponent.hpp:86
static const Scalar liquidEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy [J/kg] of the pure component in liquid.
Definition: BlackoilComponent.hpp:122
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density in [kg/m^3] of the component at a given pressure in [Pa] and temperature in [K].
Definition: BlackoilComponent.hpp:95
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density [kg/m^3] of the liquid component at a given pressure in [Pa] and temperature in [K].
Definition: BlackoilComponent.hpp:104
static Scalar molarMass()
The molar mass in [kg] of the component.
Definition: BlackoilComponent.hpp:53
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy [J/kg] of the pure component in gas.
Definition: BlackoilComponent.hpp:131
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy [J/kg] of the pure component in gas.
Definition: BlackoilComponent.hpp:113
static Scalar criticalPressure()
Returns the critical pressure in [Pa] of the component.
Definition: BlackoilComponent.hpp:65
static Scalar tripleTemperature()
Returns the temperature in [K] at the component's triple point.
Definition: BlackoilComponent.hpp:71
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity [Pa*s] of the pure component at a given pressure in [Pa] and temperature in [K]...
Definition: BlackoilComponent.hpp:149
static const Scalar liquidInternalEnergy(Scalar temperature, Scalar pressure)
Specific internal energy [J/kg] of pure the pure component in liquid.
Definition: BlackoilComponent.hpp:140
static Scalar triplePressure()
Returns the pressure in [Pa] at the component's triple point.
Definition: BlackoilComponent.hpp:77
static const char * name()
A human readable name for the component.
Definition: BlackoilComponent.hpp:45
static Scalar criticalTemperature()
Returns the critical temperature in [K] of the component.
Definition: BlackoilComponent.hpp:59
Definition: BlackoilComponent.hpp:27