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

Functions

int water (const PhaseUsage &pu)
 
int oil (const PhaseUsage &pu)
 
int gas (const PhaseUsage &pu)
 

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

References Opm::RateConverter::Details::PhaseUsed::gas().

Referenced by Opm::RateConverter::SurfaceToReservoirVoidage< BlackoilPropsAdInterface, std::vector< int > >::calcCoeff().

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.

References Opm::RateConverter::Details::PhaseUsed::oil().

Referenced by Opm::RateConverter::SurfaceToReservoirVoidage< BlackoilPropsAdInterface, std::vector< int > >::calcCoeff().

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.

References Opm::RateConverter::Details::PhaseUsed::water().

Referenced by Opm::RateConverter::SurfaceToReservoirVoidage< BlackoilPropsAdInterface, std::vector< int > >::calcCoeff().