My Project
Loading...
Searching...
No Matches
Opm::RegionAttributeHelpers::PhaseUsed Namespace Reference

Convenience functions for querying presence/absence of active phases. More...

Functions

bool water (const PhaseUsage &pu)
 Active water predicate.
 
bool oil (const PhaseUsage &pu)
 Active oil predicate.
 
bool gas (const PhaseUsage &pu)
 Active gas predicate.
 

Detailed Description

Convenience functions for querying presence/absence of active phases.

Function Documentation

◆ gas()

bool Opm::RegionAttributeHelpers::PhaseUsed::gas ( const PhaseUsage & pu)
inline

Active gas predicate.

Parameters
[in]puActive phase object.
Returns
Whether or not gas is an active phase.

◆ oil()

bool Opm::RegionAttributeHelpers::PhaseUsed::oil ( const PhaseUsage & pu)
inline

Active oil predicate.

Parameters
[in]puActive phase object.
Returns
Whether or not oil is an active phase.

◆ water()

bool Opm::RegionAttributeHelpers::PhaseUsed::water ( const PhaseUsage & pu)
inline

Active water predicate.

Parameters
[in]puActive phase object.
Returns
Whether or not water is an active phase.