27#ifndef DUMUX_MP_ADAPTER_HH
28#define DUMUX_MP_ADAPTER_HH
40template <
class MaterialLaw,
int numPhases>
46template <
class MaterialLaw>
50 using Params =
typename MaterialLaw::Params;
58 template <
class ContainerT,
class Flu
idState>
61 const FluidState &state,
64 assert(values.size() == 2);
65 const int nPhaseIdx = 1 - wPhaseIdx;
67 values[nPhaseIdx] = 0;
69 values[wPhaseIdx] = - MaterialLaw::pc(params, state.saturation(wPhaseIdx));
79 template <
class ContainerT,
class Flu
idState>
82 const FluidState &state,
85 assert(values.size() == 2);
86 const int nPhaseIdx = 1 - wPhaseIdx;
87 values[wPhaseIdx] = MaterialLaw::krw(params, state.saturation(wPhaseIdx));
88 values[nPhaseIdx] = MaterialLaw::krn(params, state.saturation(wPhaseIdx));
Template which always yields a false value.
Definition: typetraits.hh:37
An adapter for mpnc to use the capillary pressure-saturation relationships.
Definition: mpadapter.hh:42
static void capillaryPressures(ContainerT &values, const Params ¶ms, const FluidState &state, int wPhaseIdx)
The capillary pressure-saturation curve.
Definition: mpadapter.hh:59
static void relativePermeabilities(ContainerT &values, const Params ¶ms, const FluidState &state, int wPhaseIdx)
The relative permeability of all phases.
Definition: mpadapter.hh:80
typename MaterialLaw::Params Params
Definition: mpadapter.hh:50