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  Copyright (C) 2010 by Felix Bode
5  Copyright (C) 2011-2013 by Andreas Lauser
6  Copyright (C) 2010-2012 by Markus Wolff
7 
8  This file is part of the Open Porous Media project (OPM).
9 
10  OPM is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 2 of the License, or
13  (at your option) any later version.
14 
15  OPM is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with OPM. If not, see <http://www.gnu.org/licenses/>.
22 */
27 #ifndef OPM_LNAPL_HPP
28 #define OPM_LNAPL_HPP
29 
30 #include "Component.hpp"
31 
32 namespace Opm {
40 template <class Scalar>
41 class LNAPL : public Component<Scalar, LNAPL<Scalar> >
42 {
43 public:
47  static const char *name()
48  { return "LNAPL"; }
49 
53  static bool liquidIsCompressible()
54  { return false; }
55 
62  template <class Evaluation>
63  static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
64  { return 890; }
65 
72  template <class Evaluation>
73  static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/)
74  { return 8e-3; }
75 };
76 
77 } // namespace Opm
78 
79 #endif
Abstract base class of a pure chemical species.
Definition: Component.hpp:42
Definition: Air_Mesitylene.hpp:31
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition: Lnapl.hpp:53
static Evaluation liquidDensity(const Evaluation &, const Evaluation &)
Rough estimate of the density of oil .
Definition: Lnapl.hpp:63
static Evaluation liquidViscosity(const Evaluation &, const Evaluation &)
Rough estimate of the viscosity of oil in .
Definition: Lnapl.hpp:73
static const char * name()
A human readable name for the LNAPL.
Definition: Lnapl.hpp:47
Abstract base class of a pure chemical species.
A simple implementation of a LNAPL, e.g. a kind of oil.
Definition: Lnapl.hpp:41