EclipseUnits.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2010 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_ECLIPSEUNITS_HEADER_INCLUDED
21 #define OPM_ECLIPSEUNITS_HEADER_INCLUDED
22 
23 namespace Opm
24 {
25  struct EclipseUnits
26  {
27  double length;
28  double time;
29  double density;
31  double pressure;
33  double viscosity;
34  double permeability;
35  double liqvol_s;
36  double liqvol_r;
37  double gasvol_s;
38  double gasvol_r;
40 
41  void setToOne()
42  {
43  length = 1.0;
44  time = 1.0;
45  density = 1.0;
46  polymer_density = 1.0;
47  pressure = 1.0;
48  compressibility = 1.0;
49  viscosity = 1.0;
50  permeability = 1.0;
51  liqvol_s = 1.0;
52  liqvol_r = 1.0;
53  gasvol_s = 1.0;
54  gasvol_r = 1.0;
55  transmissibility = 1.0;
56  }
57  };
58 
59 
60 } // namespace Opm
61 
62 
63 #endif // OPM_ECLIPSEUNITS_HEADER_INCLUDED
void setToOne()
Definition: EclipseUnits.hpp:41
Definition: AnisotropicEikonal.hpp:43
double time
Definition: EclipseUnits.hpp:28
double liqvol_r
Definition: EclipseUnits.hpp:36
double gasvol_s
Definition: EclipseUnits.hpp:37
double gasvol_r
Definition: EclipseUnits.hpp:38
double compressibility
Definition: EclipseUnits.hpp:32
double transmissibility
Definition: EclipseUnits.hpp:39
double liqvol_s
Definition: EclipseUnits.hpp:35
double pressure
Definition: EclipseUnits.hpp:31
double viscosity
Definition: EclipseUnits.hpp:33
Definition: EclipseUnits.hpp:25
double polymer_density
Definition: EclipseUnits.hpp:30
double density
Definition: EclipseUnits.hpp:29
double permeability
Definition: EclipseUnits.hpp:34
double length
Definition: EclipseUnits.hpp:27