25#ifndef DUMUX_OBSTACLE_SPATIAL_PARAMS_HH
26#define DUMUX_OBSTACLE_SPATIAL_PARAMS_HH
40template<
class Gr
idGeometry,
class Scalar>
43 ObstacleSpatialParams<GridGeometry, Scalar>>
45 using GridView =
typename GridGeometry::GridView;
46 using FVElementGeometry =
typename GridGeometry::LocalView;
47 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
48 using Element =
typename GridView::template Codim<0>::Entity;
52 enum {dimWorld=GridView::dimensionworld};
53 using GlobalPosition =
typename SubControlVolume::GlobalPosition;
73 fineMaterialParams_.setSwr(0.0);
74 fineMaterialParams_.setSnr(0.0);
75 coarseMaterialParams_.setSwr(0.0);
76 coarseMaterialParams_.setSnr(0.0);
80 fineMaterialParams_.setEntryPc(0.0);
81 coarseMaterialParams_.setEntryPc(0.0);
82 fineMaterialParams_.setMaxPc(0.0);
83 coarseMaterialParams_.setMaxPc(0.0);
86 template<
class ElementSolution>
88 const SubControlVolume& scv,
89 const ElementSolution& elemSol)
const
91 if (isFineMaterial_(scv.dofPosition()))
103 {
return porosity_; }
113 if (isFineMaterial_(globalPos))
114 return fineMaterialParams_;
116 return coarseMaterialParams_;
125 template<
class Flu
idSystem>
128 return FluidSystem::phase0Idx;
136 static bool isFineMaterial_(
const GlobalPosition &pos)
139 10 - eps_ <= pos[0] && pos[0] <= 20 + eps_ &&
140 0 - eps_ <= pos[1] && pos[1] <= 35 + eps_;
148 static constexpr Scalar eps_ = 1e-6;
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
Implements a linear saturation-capillary pressure relation.
Definition: regularizedlinearmaterial.hh:58
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/obstacle/spatialparams.hh:44
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the soil.
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:102
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:111
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:87
Scalar PermeabilityType
Export the type used for the permeability.
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:58
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:61
ObstacleSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:63
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/mpnc/implicit/obstacle/spatialparams.hh:126
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...