My Project
Loading...
Searching...
No Matches
Phase.hpp
1
/*
2
Copyright 2016 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 it under the terms
7
of the GNU General Public License as published by the Free Software
8
Foundation, either version 3 of the License, or (at your option) any later
9
version.
10
11
OPM is distributed in the hope that it will be useful, but WITHOUT ANY
12
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License along with
16
OPM. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef OPM_PHASE_HPP
20
#define OPM_PHASE_HPP
21
22
#include <iosfwd>
23
#include <string>
24
25
namespace
Opm
{
26
27
enum class
Phase {
28
OIL = 0,
29
GAS = 1,
30
WATER = 2,
31
SOLVENT = 3,
32
POLYMER = 4,
33
ENERGY = 5,
34
POLYMW = 6,
35
FOAM = 7,
36
BRINE = 8,
37
ZFRACTION = 9
38
39
// If you add more entries to this enum, remember to update NUM_PHASES_IN_ENUM below.
40
};
41
42
constexpr
int
NUM_PHASES_IN_ENUM =
static_cast<
int
>
(Phase::ZFRACTION) + 1;
// Used to get correct size of the bitset in class Phases.
43
44
Phase get_phase(
const
std::string& );
45
std::ostream& operator<<( std::ostream&,
const
Phase& );
46
47
}
48
49
#endif
// OPM_PHASE_HPP
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition
Exceptions.hpp:30
opm
input
eclipse
EclipseState
Phase.hpp
Generated by
1.9.8