25#ifndef DUMUX_MPNC_COMPARISON_SPATIAL_PARAMS_HH
26#define DUMUX_MPNC_COMPARISON_SPATIAL_PARAMS_HH
41template<
class Gr
idGeometry,
class Scalar>
44 TwoPTwoCComparisonSpatialParams<GridGeometry, Scalar>>
46 using GridView =
typename GridGeometry::GridView;
47 using FVElementGeometry =
typename GridGeometry::LocalView;
48 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
50 using Element =
typename GridView::template Codim<0>::Entity;
54 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
56 enum {dimWorld=GridView::dimensionworld};
78 fineMaterialParams_.setSwr(0.2);
79 fineMaterialParams_.setSnr(0.0);
80 coarseMaterialParams_.setSwr(0.2);
81 coarseMaterialParams_.setSnr(0.0);
84 fineMaterialParams_.setPe(1e4);
85 coarseMaterialParams_.setPe(1e4);
86 fineMaterialParams_.setLambda(2.0);
87 coarseMaterialParams_.setLambda(2.0);
90 template<
class ElementSolution>
92 const SubControlVolume& scv,
93 const ElementSolution& elemSol)
const
95 if (isFineMaterial_(scv.dofPosition()))
120 if (isFineMaterial_(globalPos))
121 return fineMaterialParams_;
123 return coarseMaterialParams_;
132 template<
class Flu
idSystem>
134 {
return FluidSystem::H2OIdx; }
142 static bool isFineMaterial_(
const GlobalPosition &pos)
145 30 - eps_ <= pos[0] && pos[0] <= 50 + eps_ &&
146 20 - eps_ <= pos[1] && pos[1] <= 40 + eps_;
154 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
The spatial parameters for the 2p2c mpnc comparison problem.
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:45
TwoPTwoCComparisonSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:68
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Function for defining the parameters needed by constitutive relationships (kr-sw, pc-sw,...
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:118
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:65
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:133
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:91
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the soil.
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:107
Scalar PermeabilityType
Export permeability type.
Definition: porousmediumflow/2p2c/implicit/mpnccomparison/spatialparams.hh:62
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...