25#ifndef DUMUX_MPNC_COMPARISON_SPATIAL_PARAMS_HH
26#define DUMUX_MPNC_COMPARISON_SPATIAL_PARAMS_HH
42template<
class Gr
idGeometry,
class Scalar>
45 MPNCComparisonSpatialParams<GridGeometry, Scalar>>
47 using GridView =
typename GridGeometry::GridView;
48 using FVElementGeometry =
typename GridGeometry::LocalView;
49 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
51 using Element =
typename GridView::template Codim<0>::Entity;
55 using GlobalPosition =
typename SubControlVolume::GlobalPosition;
73 fineMaterialParams_.setSwr(0.2);
74 fineMaterialParams_.setSnr(0.0);
75 coarseMaterialParams_.setSwr(0.2);
76 coarseMaterialParams_.setSnr(0.0);
79 fineMaterialParams_.setPe(1e4);
80 coarseMaterialParams_.setPe(1e4);
81 fineMaterialParams_.setLambda(2.0);
82 coarseMaterialParams_.setLambda(2.0);
85 template<
class ElementSolution>
87 const SubControlVolume& scv,
88 const ElementSolution& elemSol)
const
90 if (isFineMaterial_(scv.dofPosition()))
114 if (isFineMaterial_(globalPos))
115 return fineMaterialParams_;
117 return coarseMaterialParams_;
126 template<
class Flu
idSystem>
129 return FluidSystem::phase0Idx;
137 static bool isFineMaterial_(
const GlobalPosition &pos)
140 30 - eps_ <= pos[0] && pos[0] <= 50 + eps_ &&
141 20 - eps_ <= pos[1] && pos[1] <= 40 + eps_;
149 static constexpr Scalar eps_ = 1e-6;
Implementation of a regularized version of the Brooks-Corey capillary pressure / relative permeabilit...
Regularized linear capillary pressure and relative permeability <-> saturation relations.
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:60
AbsParamsT Params
Definition: 2p/efftoabslaw.hh:64
Implementation of the regularized Brooks-Corey capillary pressure / relative permeability <-> saturat...
Definition: regularizedbrookscorey.hh:62
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
Definition: fv.hh:57
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Definition of the spatial params properties for the obstacle problem.
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:46
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the soil.
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:101
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:61
MPNCComparisonSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:63
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:112
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:86
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:127
Scalar PermeabilityType
Definition: porousmediumflow/mpnc/implicit/2p2ccomparison/spatialparams.hh:59
Defines a type tag and some properties for models using the box scheme.
This material law takes a material law defined for effective saturations and converts it to a materia...