Convenience functions for querying numerical IDs ("positions") of active phases.
More...
|
int | water (const PhaseUsage &pu) |
| Numerical ID of active water phase. More...
|
|
int | oil (const PhaseUsage &pu) |
| Numerical ID of active oil phase. More...
|
|
int | gas (const PhaseUsage &pu) |
| Numerical ID of active gas phase. More...
|
|
Convenience functions for querying numerical IDs ("positions") of active phases.
◆ gas()
int Opm::RateConverter::Details::PhasePos::gas |
( |
const PhaseUsage & |
pu | ) |
|
|
inline |
Numerical ID of active gas phase.
- Parameters
-
[in] | pu | Active phase object. |
- Returns
- Non-negative index/position of gas if active, -1 if not.
◆ oil()
int Opm::RateConverter::Details::PhasePos::oil |
( |
const PhaseUsage & |
pu | ) |
|
|
inline |
Numerical ID of active oil phase.
- Parameters
-
[in] | pu | Active phase object. |
- Returns
- Non-negative index/position of oil if active, -1 if not.
◆ water()
int Opm::RateConverter::Details::PhasePos::water |
( |
const PhaseUsage & |
pu | ) |
|
|
inline |
Numerical ID of active water phase.
- Parameters
-
[in] | pu | Active phase object. |
- Returns
- Non-negative index/position of water if active, -1 if not.