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
32namespace Opm {
40template <class Scalar>
41class LNAPL : public Component<Scalar, LNAPL<Scalar> >
42{
43public:
47 static const char* name()
48 { return "LNAPL"; }
49
54 { return 0.11423; }
55
60 { return false; }
61
68 template <class Evaluation>
69 static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
70 { return 692.0; }
71
78 template <class Evaluation>
79 static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
80 { return 0.005; }
81
90 template <class Evaluation>
91 static Evaluation liquidEnthalpy(const Evaluation& temperature,
92 const Evaluation&)
93 {
94 return 240.0/molarMass() * temperature; // [J/kg]
95 }
96
105 template <class Evaluation>
106 static Evaluation liquidHeatCapacity(const Evaluation&,
107 const Evaluation&)
108 {
109 return 240.0/molarMass();
110 }
111
120 template <class Evaluation>
121 static Evaluation liquidThermalConductivity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
122 {
123 return 0.3; // TODO: guess
124 }
125};
126
127} // namespace Opm
128
129#endif
Abstract base class of a pure chemical species.
Definition: Component.hpp:42
Scalar Scalar
Definition: Component.hpp:44
A simple implementation of a LNAPL, e.g. a kind of oil.
Definition: Lnapl.hpp:42
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
Rough estimate of the viscosity of oil in .
Definition: Lnapl.hpp:79
static Evaluation liquidHeatCapacity(const Evaluation &, const Evaluation &)
Specific isobaric heat capacity of liquid iso-octane.
Definition: Lnapl.hpp:106
static Scalar molarMass()
The molar mass in of iso-octane.
Definition: Lnapl.hpp:53
static const char * name()
A human readable name for the iso-octane.
Definition: Lnapl.hpp:47
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
Rough estimate of the density of oil .
Definition: Lnapl.hpp:69
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: Lnapl.hpp:59
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &)
The enthalpy of iso-octane at a given pressure and temperature .
Definition: Lnapl.hpp:91
static Evaluation liquidThermalConductivity(const Evaluation &, const Evaluation &)
Specific heat conductivity of liquid TCE .
Definition: Lnapl.hpp:121
Definition: Air_Mesitylene.hpp:34