13#ifndef DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH 
   14#define DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH 
   29template<
class DiscretizationMethod, 
bool enableReconstruction>
 
   46    template<
class SpatialParams, 
class Element, 
class Scv, 
class ElemSol>
 
   47    static typename ElemSol::PrimaryVariables::value_type
 
   49                  const Element& element,
 
   51                  const ElemSol& elemSol,
 
   52                  typename ElemSol::PrimaryVariables::value_type sn)
 
 
 
   70    template<
class SpatialParams, 
class Element, 
class Scv, 
class ElemSol>
 
   71    static typename ElemSol::PrimaryVariables::value_type
 
   73                  const Element& element,
 
   75                  const ElemSol& elemSol,
 
   76                  typename ElemSol::PrimaryVariables::value_type sn)
 
   79        const auto& materialInterfaces = spatialParams.materialInterfaces();
 
   80        if (!materialInterfaces.isOnMaterialInterface(scv))
 
   84        const auto& interfacePcSw = materialInterfaces.pcSwAtDof(scv);
 
   86        const auto& pcSw = spatialParams.fluidMatrixInteraction(element, scv, elemSol).pcSwCurve();
 
   88        if (interfacePcSw == pcSw)
 
   92        const auto pc = interfacePcSw.pc(1.0 - sn);
 
   95        const auto pcMin = pcSw.endPointPc();
 
   97        if (pc < pcMin && pcMin > 0.0)
 
  100            return 1.0 - pcSw.sw(pc);
 
 
 
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 nonwetting phase saturation in an scv.
Definition saturationreconstruction.hh:72
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
Definition saturationreconstruction.hh:31
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 nonwetting phase saturation in an scv.
Definition saturationreconstruction.hh:48
The available discretization methods in Dumux.