Opm::RateConverter::Details::PhasePos Namespace Reference

Convenience functions for querying numerical IDs ("positions") of active phases. More...

Functions

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...
 

Detailed Description

Convenience functions for querying numerical IDs ("positions") of active phases.

Function Documentation

◆ gas()

int Opm::RateConverter::Details::PhasePos::gas ( const PhaseUsage &  pu)
inline

Numerical ID of active gas phase.

Parameters
[in]puActive 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]puActive 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]puActive phase object.
Returns
Non-negative index/position of water if active, -1 if not.