MiscibilityDead.hpp
1 //===========================================================================
2 //
3 // File: MiscibilityDead.hpp
4 //
5 // Created: Wed Feb 10 09:05:47 2010
6 //
7 // Author: Bjørn Spjelkavik <bsp@sintef.no>
8 //
9 // Revision: $Id$
10 //
11 //===========================================================================
12 /*
13  Copyright 2010 SINTEF ICT, Applied Mathematics.
14 
15  This file is part of the Open Porous Media project (OPM).
16 
17  OPM is free software: you can redistribute it and/or modify
18  it under the terms of the GNU General Public License as published by
19  the Free Software Foundation, either version 3 of the License, or
20  (at your option) any later version.
21 
22  OPM is distributed in the hope that it will be useful,
23  but WITHOUT ANY WARRANTY; without even the implied warranty of
24  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  GNU General Public License for more details.
26 
27  You should have received a copy of the GNU General Public License
28  along with OPM. If not, see <http://www.gnu.org/licenses/>.
29 */
30 
31 #ifndef SINTEF_MISCIBILITYDEAD_HEADER
32 #define SINTEF_MISCIBILITYDEAD_HEADER
33 
38 #include "MiscibilityProps.hpp"
39 #include <opm/core/utility/UniformTableLinear.hpp>
40 #include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
41 
42 namespace Opm
43 {
44 
45  class PvdoTable;
46  class PvdgTable;
47 
49  {
50  public:
51 
52  MiscibilityDead(const PvdoTable& pvdoTable);
53  MiscibilityDead(const PvdgTable& pvdgTable);
54  virtual ~MiscibilityDead();
55 
56  virtual double getViscosity(int region, double press, const surfvol_t& surfvol) const;
57  virtual double B(int region, double press, const surfvol_t& surfvol) const;
58  virtual double dBdp(int region, double press, const surfvol_t& surfvol) const;
59  virtual double R(int region, double press, const surfvol_t& surfvol) const;
60  virtual double dRdp(int region, double press, const surfvol_t& surfvol) const;
61 
62  virtual void getViscosity(const std::vector<PhaseVec>& pressures,
63  const std::vector<CompVec>& surfvol,
64  int phase,
65  std::vector<double>& output) const;
66  virtual void B(const std::vector<PhaseVec>& pressures,
67  const std::vector<CompVec>& surfvol,
68  int phase,
69  std::vector<double>& output) const;
70  virtual void dBdp(const std::vector<PhaseVec>& pressures,
71  const std::vector<CompVec>& surfvol,
72  int phase,
73  std::vector<double>& output_B,
74  std::vector<double>& output_dBdp) const;
75  virtual void R(const std::vector<PhaseVec>& pressures,
76  const std::vector<CompVec>& surfvol,
77  int phase,
78  std::vector<double>& output) const;
79  virtual void dRdp(const std::vector<PhaseVec>& pressures,
80  const std::vector<CompVec>& surfvol,
81  int phase,
82  std::vector<double>& output_R,
83  std::vector<double>& output_dRdp) const;
84 
85  private:
86  // PVT properties of dry gas or dead oil
87  Opm::utils::UniformTableLinear<double> one_over_B_;
88  Opm::utils::UniformTableLinear<double> viscosity_;
89  };
90 
91 }
92 
93 #endif // SINTEF_MISCIBILITYDEAD_HEADER
94 
Definition: MiscibilityDead.hpp:48
Class for immiscible dead oil and dry gas.
Definition: applier.hpp:18
Definition: MiscibilityProps.hpp:46