25#ifndef DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH
26#define DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH
41template<DiscretizationMethod M,
bool enableReconstruction>
58 template<
class SpatialParams,
class Element,
class Scv,
class ElemSol>
59 static typename ElemSol::PrimaryVariables::value_type
61 const Element& element,
63 const ElemSol& elemSol,
64 typename ElemSol::PrimaryVariables::value_type Sn)
82 template<
class SpatialParams,
class Element,
class Scv,
class ElemSol>
83 static typename ElemSol::PrimaryVariables::value_type
85 const Element& element,
87 const ElemSol& elemSol,
88 typename ElemSol::PrimaryVariables::value_type Sn)
91 if (!spatialParams.materialInterfaceParams().isOnMaterialInterface(scv))
94 using MaterialLaw =
typename SpatialParams::MaterialLaw;
96 const auto& ifMaterialParams = spatialParams.materialInterfaceParams().getDofParams(scv);
97 const auto pc = MaterialLaw::pc(ifMaterialParams, 1.0 - Sn);
100 const auto& materialLawParams = spatialParams.materialLawParams(element, scv, elemSol);
101 const auto pcMin = MaterialLaw::endPointPc(materialLawParams);
103 if (pc < pcMin && pcMin > 0.0)
return 0.0;
104 else return 1.0 - MaterialLaw::sw(materialLawParams, pc);
The available discretization methods in Dumux.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Class that computes the non-wetting saturation in an scv from the saturation at the global degree of ...
Definition: saturationreconstruction.hh:43
static ElemSol::PrimaryVariables::value_type reconstructSn(const SpatialParams &spatialParams, const Element &element, const Scv &scv, const ElemSol &elemSol, typename ElemSol::PrimaryVariables::value_type Sn)
Compute the non-wetting phase saturation in an scv.
Definition: saturationreconstruction.hh:60
static ElemSol::PrimaryVariables::value_type reconstructSn(const SpatialParams &spatialParams, const Element &element, const Scv &scv, const ElemSol &elemSol, typename ElemSol::PrimaryVariables::value_type Sn)
Compute the non-wetting phase saturation in an scv.
Definition: saturationreconstruction.hh:84