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_PENG_ROBINSON_PARAMS_HPP 00028 #define OPM_PENG_ROBINSON_PARAMS_HPP 00029 00030 #include <opm/common/Valgrind.hpp> 00031 00032 namespace Opm 00033 { 00042 template <class Scalar> 00043 class PengRobinsonParams 00044 { 00045 public: 00050 Scalar a() const 00051 { return a_; } 00052 00057 Scalar b() const 00058 { return b_; } 00059 00064 void checkDefined() const 00065 { 00066 #ifndef NDEBUG 00067 Valgrind::CheckDefined(a_); 00068 Valgrind::CheckDefined(b_); 00069 #endif 00070 } 00071 00076 void setA(Scalar value) 00077 { a_ = value; } 00078 00083 void setB(Scalar value) 00084 { b_ = value; } 00085 00086 protected: 00087 Scalar a_; 00088 Scalar b_; 00089 }; 00090 00091 } // namespace Opm 00092 00093 #endif