25#ifndef DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH
26#define DUMUX_2P_SCV_SATURATION_RECONSTRUCTION_HH
41template<
class DiscretizationMethod,
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 const auto& materialInterfaces = spatialParams.materialInterfaces();
92 if (!materialInterfaces.isOnMaterialInterface(scv))
96 const auto& interfacePcSw = materialInterfaces.pcSwAtDof(scv);
97 const auto pc = interfacePcSw.pc(1.0 - sn);
100 const auto& pcSw = spatialParams.fluidMatrixInteraction(element, scv, elemSol).pcSwCurve();
101 const auto pcMin = pcSw.endPointPc();
103 if (pc < pcMin && pcMin > 0.0)
106 return 1.0 - pcSw.sw(pc);
The available discretization methods in Dumux.
Adaption of the non-isothermal two-phase two-component flow model to problems with CO2.
Definition: adapt.hh:29
CVFE< CVFEMethods::PQ1 > Box
Definition: method.hh:83
Class that computes the nonwetting saturation in an scv from the saturation at the global degree of f...
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 nonwetting 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 nonwetting phase saturation in an scv.
Definition: saturationreconstruction.hh:84