00001 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 00002 // vi: set et ts=4 sw=4 sts=4: 00003 /* 00004 This file is part of the Open Porous Media project (OPM). 00005 00006 OPM is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 OPM is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with OPM. If not, see <http://www.gnu.org/licenses/>. 00018 00019 Consult the COPYING file in the top-level source directory of this 00020 module for the precise wording of the license and the list of 00021 copyright holders. 00022 */ 00027 #ifndef OPM_LNAPL_HPP 00028 #define OPM_LNAPL_HPP 00029 00030 #include "Component.hpp" 00031 00032 namespace Opm { 00040 template <class Scalar> 00041 class LNAPL : public Component<Scalar, LNAPL<Scalar> > 00042 { 00043 public: 00047 static const char* name() 00048 { return "LNAPL"; } 00049 00053 static bool liquidIsCompressible() 00054 { return false; } 00055 00062 template <class Evaluation> 00063 static Evaluation liquidDensity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/) 00064 { return 890; } 00065 00072 template <class Evaluation> 00073 static Evaluation liquidViscosity(const Evaluation& /*temperature*/, const Evaluation& /*pressure*/) 00074 { return 8e-3; } 00075 }; 00076 00077 } // namespace Opm 00078 00079 #endif