mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added numPhases() method to SaturationProps* classes.
This commit is contained in:
parent
ed9b420fb9
commit
014cd130a3
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user