ECLUnitHandling.hpp
Go to the documentation of this file.
1/*
2 Copyright 2017 Statoil ASA.
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_ECLUNITHANDLING_HEADER_INCLUDED
21#define OPM_ECLUNITHANDLING_HEADER_INCLUDED
22
23#include <memory>
24
25namespace Opm {
26
27 namespace ECLUnits {
28
30 {
31 virtual std::unique_ptr<UnitSystem> clone() const = 0;
32
33 virtual double density() const = 0;
34 virtual double depth() const = 0;
35 virtual double pressure() const = 0;
36 virtual double reservoirRate() const = 0;
37 virtual double reservoirVolume() const = 0;
38 virtual double surfaceVolumeLiquid() const = 0;
39 virtual double surfaceVolumeGas() const = 0;
40 virtual double time() const = 0;
41 virtual double transmissibility() const = 0;
42 virtual double viscosity() const = 0;
43
44 double dissolvedGasOilRat() const; // Rs
45 double vaporisedOilGasRat() const; // Rv
46 };
47
48 std::unique_ptr<const UnitSystem>
49 createUnitSystem(const int usys);
50
51 } // namespace ECLUnits
52} // namespace Opm
53
54#endif // OPM_ECLUNITHANDLING_HEADER_INCLUDED
std::unique_ptr< const UnitSystem > createUnitSystem(const int usys)
Definition: A.hpp:4
Definition: ECLUnitHandling.hpp:30
virtual double surfaceVolumeLiquid() const =0
virtual double transmissibility() const =0
virtual double pressure() const =0
double vaporisedOilGasRat() const
virtual double time() const =0
virtual std::unique_ptr< UnitSystem > clone() const =0
virtual double depth() const =0
virtual double reservoirVolume() const =0
virtual double surfaceVolumeGas() const =0
virtual double viscosity() const =0
virtual double reservoirRate() const =0
virtual double density() const =0
double dissolvedGasOilRat() const