My Project
Loading...
Searching...
No Matches
Lnapl.hpp
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 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 2 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 Consult the COPYING file in the top-level source directory of this
20 module for the precise wording of the license and the list of
21 copyright holders.
22*/
27#ifndef OPM_LNAPL_HPP
28#define OPM_LNAPL_HPP
29
30#include "Component.hpp"
31
32#include <string_view>
33
34namespace Opm {
42template <class Scalar>
43class LNAPL : public Component<Scalar, LNAPL<Scalar> >
44{
45public:
49 static std::string_view name()
50 { return "LNAPL"; }
51
55 static Scalar molarMass()
56 { return 0.11423; }
57
62 { return false; }
63
70 template <class Evaluation>
71 static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
72 { return 692.0; }
73
80 template <class Evaluation>
81 static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
82 { return 0.005; }
83
92 template <class Evaluation>
93 static Evaluation liquidEnthalpy(const Evaluation& temperature,
94 const Evaluation&)
95 {
96 return 240.0/molarMass() * temperature; // [J/kg]
97 }
98
107 template <class Evaluation>
108 static Evaluation liquidHeatCapacity(const Evaluation&,
109 const Evaluation&)
110 {
111 return 240.0/molarMass();
112 }
113
122 template <class Evaluation>
123 static Evaluation liquidThermalConductivity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
124 {
125 return 0.3; // TODO: guess
126 }
127};
128
129} // namespace Opm
130
131#endif
Abstract base class of a pure chemical species.
Abstract base class of a pure chemical species.
Definition Component.hpp:44
A simple implementation of a LNAPL, e.g.
Definition Lnapl.hpp:44
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
Rough estimate of the viscosity of oil in .
Definition Lnapl.hpp:81
static Evaluation liquidHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of liquid iso-octane.
Definition Lnapl.hpp:108
static Scalar molarMass()
The molar mass in of iso-octane.
Definition Lnapl.hpp:55
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
Rough estimate of the density of oil .
Definition Lnapl.hpp:71
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Lnapl.hpp:61
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &)
The enthalpy of iso-octane at a given pressure and temperature .
Definition Lnapl.hpp:93
static std::string_view name()
A human readable name for the iso-octane.
Definition Lnapl.hpp:49
static Evaluation liquidThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of liquid TCE .
Definition Lnapl.hpp:123
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30