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);
85 const auto pc = interfacePcSw.pc(1.0 - sn);
88 const auto& pcSw = spatialParams.fluidMatrixInteraction(element, scv, elemSol).pcSwCurve();
89 const auto pcMin = pcSw.endPointPc();
91 if (pc < pcMin && pcMin > 0.0)
94 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.
CVFE< CVFEMethods::PQ1 > Box
Definition: method.hh:94