IncompPropertiesSinglePhase.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2015 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_INCOMPPROPERTIESSINGLEPHASE_HEADER_INCLUDED
21 #define OPM_INCOMPPROPERTIESSINGLEPHASE_HEADER_INCLUDED
22 
23 
24 
25 #include <opm/parser/eclipse/Deck/Deck.hpp>
26 #include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
29 
30 struct UnstructuredGrid;
31 
32 namespace Opm
33 {
34 
48  {
49  public:
56  IncompPropertiesSinglePhase(Opm::DeckConstPtr deck,
57  Opm::EclipseStateConstPtr eclState,
58  const UnstructuredGrid& grid);
59 
62 
63  // ---- Rock interface ----
64 
66  virtual int numDimensions() const;
67 
69  virtual int numCells() const;
70 
72  virtual const double* porosity() const;
73 
77  virtual const double* permeability() const;
78 
79 
80  // ---- Fluid interface ----
81 
83  virtual int numPhases() const;
84 
86  virtual const double* viscosity() const;
87 
90  virtual const double* density() const;
91 
94  virtual const double* surfaceDensity() const;
95 
103  virtual void relperm(const int n,
104  const double* s,
105  const int* cells,
106  double* kr,
107  double* dkrds) const;
108 
116  virtual void capPress(const int n,
117  const double* s,
118  const int* cells,
119  double* pc,
120  double* dpcds) const;
121 
122 
129  virtual void satRange(const int n,
130  const int* cells,
131  double* smin,
132  double* smax) const;
133  private:
134  RockFromDeck rock_;
135  double surface_density_;
136  double reservoir_density_;
137  double viscosity_;
138  };
139 
140 
141 
142 } // namespace Opm
143 
144 
145 
146 #endif // OPM_INCOMPPROPERTIESSINGLEPHASE_HEADER_INCLUDED
Definition: IncompPropertiesInterface.hpp:35
Definition: grid.h:98
Definition: AnisotropicEikonal.hpp:43
virtual const double * permeability() const
virtual int numCells() const
virtual ~IncompPropertiesSinglePhase()
Destructor.
virtual void capPress(const int n, const double *s, const int *cells, double *pc, double *dpcds) const
virtual const double * viscosity() const
virtual const double * density() const
virtual int numDimensions() const
virtual const double * surfaceDensity() const
virtual void satRange(const int n, const int *cells, double *smin, double *smax) const
virtual void relperm(const int n, const double *s, const int *cells, double *kr, double *dkrds) const
const UnstructuredGrid & grid
Definition: ColumnExtract.hpp:31
virtual const double * porosity() const
IncompPropertiesSinglePhase(Opm::DeckConstPtr deck, Opm::EclipseStateConstPtr eclState, const UnstructuredGrid &grid)
virtual int numPhases() const
Definition: RockFromDeck.hpp:32
Definition: IncompPropertiesSinglePhase.hpp:47