Added numPhases() method to SaturationProps* classes.

This commit is contained in:
Atgeirr Flø Rasmussen 2012-01-18 18:31:12 +01:00
parent ed9b420fb9
commit 014cd130a3
3 changed files with 18 additions and 0 deletions

View File

@ -128,6 +128,15 @@ namespace Opm
/// \return P, the number of phases.
int SaturationPropsBasic::numPhases() const
{
return num_phases_;
}
/// Relative permeability.
/// \param[in] n Number of data points.
/// \param[in] s Array of nP saturation values.

View File

@ -30,6 +30,9 @@ namespace Opm
/// by which we mean constant, linear or quadratic relative
/// permeability functions for a maximum of two phases,
/// and zero capillary pressure.
///
/// TODO: This class can easily be extended to three phases,
/// by adding three-phase relperm behaviour.
class SaturationPropsBasic
{
public:
@ -42,6 +45,9 @@ namespace Opm
/// relperm_func ("Linear") Must be "Constant", "Linear" or "Quadratic".
void init(const Dune::parameter::ParameterGroup& param);
/// \return P, the number of phases.
int numPhases() const;
/// Relative permeability.
/// \param[in] n Number of data points.
/// \param[in] s Array of nP saturation values.

View File

@ -36,6 +36,9 @@ namespace Opm
/// Initialize from deck.
void init(const Dune::EclipseGridParser& deck);
/// \return P, the number of phases.
int numPhases() const;
/// Relative permeability.
/// \param[in] n Number of data points.
/// \param[in] s Array of nP saturation values.