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.
int oil (const PhaseUsage &pu)
 Numerical ID of active oil phase.
int gas (const PhaseUsage &pu)
 Numerical ID of active gas phase.

Detailed Description

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


Function Documentation

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

Generated on 26 Mar 2018 by  doxygen 1.6.1