My Project
Opm::PiecewiseLinearTwoPhaseMaterial< TraitsT, ParamsT > Class Template Reference

Implementation of a tabulated, piecewise linear capillary pressure law. More...

#include <PiecewiseLinearTwoPhaseMaterial.hpp>

Inheritance diagram for Opm::PiecewiseLinearTwoPhaseMaterial< TraitsT, ParamsT >:

Public Types

using Traits = TraitsT
 The traits class for this material law.
 
using Params = ParamsT
 The type of the parameter objects for this law.
 
using Scalar = typename Traits::Scalar
 The type of the scalar values for this law.
 

Static Public Member Functions

template<class Container , class FluidState >
static void capillaryPressures (Container &values, const Params &params, const FluidState &fs)
 The capillary pressure-saturation curve.
 
template<class Container , class FluidState >
static void saturations (Container &, const Params &, const FluidState &)
 The saturations of the fluid phases starting from their pressure differences.
 
template<class Container , class FluidState >
static void relativePermeabilities (Container &values, const Params &params, const FluidState &fs)
 The relative permeabilities.
 
template<class FluidState , class Evaluation = typename FluidState::Scalar>
static Evaluation pcnw (const Params &params, const FluidState &fs)
 The capillary pressure-saturation curve.
 
template<class Evaluation >
static Evaluation twoPhaseSatPcnw (const Params &params, const Evaluation &Sw)
 The saturation-capillary pressure curve.
 
template<class Evaluation >
static Evaluation twoPhaseSatPcnwInv (const Params &params, const Evaluation &pcnw)
 
template<class FluidState , class Evaluation = typename FluidState::Scalar>
static Evaluation Sw (const Params &, const FluidState &)
 The saturation-capillary pressure curve.
 
template<class Evaluation >
static Evaluation twoPhaseSatSw (const Params &, const Evaluation &)
 
template<class FluidState , class Evaluation = typename FluidState::Scalar>
static Evaluation Sn (const Params &params, const FluidState &fs)
 Calculate the non-wetting phase saturations depending on the phase pressures.
 
template<class Evaluation >
static Evaluation twoPhaseSatSn (const Params &params, const Evaluation &pC)
 
template<class FluidState , class Evaluation = typename FluidState::Scalar>
static Evaluation krw (const Params &params, const FluidState &fs)
 The relative permeability for the wetting phase of the porous medium.
 
template<class Evaluation >
static Evaluation twoPhaseSatKrw (const Params &params, const Evaluation &Sw)
 
template<class Evaluation >
static Evaluation twoPhaseSatKrwInv (const Params &params, const Evaluation &krw)
 
template<class FluidState , class Evaluation = typename FluidState::Scalar>
static Evaluation krn (const Params &params, const FluidState &fs)
 The relative permeability for the non-wetting phase of the porous medium.
 
template<class Evaluation >
static Evaluation twoPhaseSatKrn (const Params &params, const Evaluation &Sw)
 
template<class Evaluation >
static Evaluation twoPhaseSatKrnInv (const Params &params, const Evaluation &krn)
 

Static Public Attributes

static constexpr int numPhases = Traits::numPhases
 The number of fluid phases.
 
static constexpr bool implementsTwoPhaseApi = true
 Specify whether this material law implements the two-phase convenience API.
 
static constexpr bool implementsTwoPhaseSatApi = true
 Specify whether this material law implements the two-phase convenience API which only depends on the phase saturations.
 
static constexpr bool isSaturationDependent = true
 Specify whether the quantities defined by this material law are saturation dependent.
 
static constexpr bool isPressureDependent = false
 Specify whether the quantities defined by this material law are dependent on the absolute pressure.
 
static constexpr bool isTemperatureDependent = false
 Specify whether the quantities defined by this material law are temperature dependent.
 
static constexpr bool isCompositionDependent = false
 Specify whether the quantities defined by this material law are dependent on the phase composition.
 

Detailed Description

template<class TraitsT, class ParamsT = PiecewiseLinearTwoPhaseMaterialParams<TraitsT>>
class Opm::PiecewiseLinearTwoPhaseMaterial< TraitsT, ParamsT >

Implementation of a tabulated, piecewise linear capillary pressure law.

It would be equally possible to use cubic splines, but since the ECLIPSE reservoir simulator uses linear interpolation for capillary pressure and relperm curves, we do the same.


The documentation for this class was generated from the following file: