IncompPropertiesFromDeck.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2012 SINTEF ICT, Applied Mathematics.
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 3 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 
20 #ifndef OPM_INCOMPPROPERTIESFROMDECK_HEADER_INCLUDED
21 #define OPM_INCOMPPROPERTIESFROMDECK_HEADER_INCLUDED
22 
23 #include <opm/parser/eclipse/Deck/Deck.hpp>
24 #include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
29 
30 struct UnstructuredGrid;
31 
32 namespace Opm
33 {
34 
47  {
48  public:
55  IncompPropertiesFromDeck(Opm::DeckConstPtr deck,
56  Opm::EclipseStateConstPtr eclState,
57  const UnstructuredGrid& grid);
58 
60  virtual ~IncompPropertiesFromDeck();
61 
62  // ---- Rock interface ----
63 
65  virtual int numDimensions() const;
66 
68  virtual int numCells() const;
69 
71  virtual const double* porosity() const;
72 
76  virtual const double* permeability() const;
77 
78 
79  // ---- Fluid interface ----
80 
82  virtual int numPhases() const;
83 
85  virtual const double* viscosity() const;
86 
89  virtual const double* density() const;
90 
93  virtual const double* surfaceDensity() const;
94 
104  virtual void relperm(const int n,
105  const double* s,
106  const int* cells,
107  double* kr,
108  double* dkrds) const;
109 
110 
120  virtual void capPress(const int n,
121  const double* s,
122  const int* cells,
123  double* pc,
124  double* dpcds) const;
125 
126 
134  virtual void satRange(const int n,
135  const int* cells,
136  double* smin,
137  double* smax) const;
138  private:
139  RockFromDeck rock_;
141  SaturationPropsFromDeck satprops_;
142  };
143 
144 
145 
146 } // namespace Opm
147 
148 
149 #endif // OPM_INCOMPPROPERTIESFROMDECK_HEADER_INCLUDED
virtual void relperm(const int n, const double *s, const int *cells, double *kr, double *dkrds) const
Definition: IncompPropertiesInterface.hpp:35
Definition: grid.h:98
virtual const double * viscosity() const
Definition: AnisotropicEikonal.hpp:43
Definition: PvtPropertiesIncompFromDeck.hpp:34
virtual const double * density() const
virtual const double * permeability() const
virtual void satRange(const int n, const int *cells, double *smin, double *smax) const
virtual const double * surfaceDensity() const
virtual int numPhases() const
IncompPropertiesFromDeck(Opm::DeckConstPtr deck, Opm::EclipseStateConstPtr eclState, const UnstructuredGrid &grid)
virtual const double * porosity() const
virtual int numCells() const
virtual void capPress(const int n, const double *s, const int *cells, double *pc, double *dpcds) const
virtual int numDimensions() const
virtual ~IncompPropertiesFromDeck()
Destructor.
Interface to saturation functions from deck.
Definition: SaturationPropsFromDeck.hpp:47
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
Definition: IncompPropertiesFromDeck.hpp:46
Definition: RockFromDeck.hpp:32