IncompPropertiesSinglePhase.hpp
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>
27 #include <opm/core/props/IncompPropertiesInterface.hpp>
28 #include <opm/core/props/rock/RockFromDeck.hpp>
29 
30 struct UnstructuredGrid;
31 
32 namespace Opm
33 {
34 
48  {
49  public:
56  IncompPropertiesSinglePhase(const Opm::Deck& deck,
57  const Opm::EclipseState& 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
virtual void satRange(const int n, const int *cells, double *smin, double *smax) const
Obtain the range of allowable saturation values.
Definition: IncompPropertiesSinglePhase.cpp:172
virtual int numDimensions() const
Definition: IncompPropertiesSinglePhase.cpp:74
virtual const double * density() const
Densities of fluid at reservoir conditions.
Definition: IncompPropertiesSinglePhase.cpp:115
virtual void capPress(const int n, const double *s, const int *cells, double *pc, double *dpcds) const
Capillary pressure.
Definition: IncompPropertiesSinglePhase.cpp:153
Definition: AnisotropicEikonal.cpp:446
virtual const double * surfaceDensity() const
Densities of fluid phases at surface conditions.
Definition: IncompPropertiesSinglePhase.cpp:121
virtual const double * permeability() const
Definition: IncompPropertiesSinglePhase.cpp:94
virtual const double * viscosity() const
Definition: IncompPropertiesSinglePhase.cpp:109
virtual int numCells() const
Definition: IncompPropertiesSinglePhase.cpp:80
virtual const double * porosity() const
Definition: IncompPropertiesSinglePhase.cpp:86
virtual int numPhases() const
Definition: IncompPropertiesSinglePhase.cpp:103
Definition: RockFromDeck.hpp:32
virtual ~IncompPropertiesSinglePhase()
Destructor.
Definition: IncompPropertiesSinglePhase.cpp:68
IncompPropertiesSinglePhase(const Opm::Deck &deck, const Opm::EclipseState &eclState, const UnstructuredGrid &grid)
Initialize from deck and grid.
Definition: IncompPropertiesSinglePhase.cpp:35
virtual void relperm(const int n, const double *s, const int *cells, double *kr, double *dkrds) const
Relative permeability.
Definition: IncompPropertiesSinglePhase.cpp:133
Abstract base class for incompressible fluid and reservoir properties.
Definition: IncompPropertiesInterface.hpp:35
Concrete class implementing the incompressible property interface for a simplified single-phase setti...
Definition: IncompPropertiesSinglePhase.hpp:47