25#ifndef DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
26#define DUMUX_RICHARDS_LENS_SPATIAL_PARAMETERS_HH
44template<
class Gr
idGeometry,
class Scalar>
47 RichardsWellTracerSpatialParams<GridGeometry, Scalar>>
49 using GridView =
typename GridGeometry::GridView;
53 enum { dimWorld=GridView::dimensionworld };
54 using Element =
typename GridView::template Codim<0>::Entity;
55 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
69 lensLowerLeft_ = getParam<GlobalPosition>(
"Problem.LensLowerLeft");
70 lensUpperRight_ = getParam<GlobalPosition>(
"Problem.LensUpperRight");
73 lensMaterialParams_.setSwr(0.18);
74 lensMaterialParams_.setSnr(0.0);
75 outerMaterialParams_.setSwr(0.05);
76 outerMaterialParams_.setSnr(0.0);
80 lensMaterialParams_.setVgAlpha(0.00045);
81 lensMaterialParams_.setVgn(7.3);
82 outerMaterialParams_.setVgAlpha(0.0037);
83 outerMaterialParams_.setVgn(4.7);
85 lensMaterialParams_.setVgn(7.3);
86 outerMaterialParams_.setVgAlpha(0.0037);
99 if (isInLens_(globalPos))
111 if (isInLens_(globalPos))
123 if (isInLens_(globalPos))
124 return lensMaterialParams_;
125 return outerMaterialParams_;
129 bool isInLens_(
const GlobalPosition &globalPos)
const
131 for (
int i = 0; i < dimWorld; ++i)
132 if (globalPos[i] < lensLowerLeft_[i] - eps_ || globalPos[i] > lensUpperRight_[i] + eps_)
138 static constexpr Scalar eps_ = 1.5e-7;
140 GlobalPosition lensLowerLeft_;
141 GlobalPosition lensUpperRight_;
Interface for passing data sets to a file and plotting them, if gnuplot is installed.
Interface for plotting the two-phase fluid-matrix-interaction laws.
Implementation of the capillary pressure and relative permeability <-> saturation relations according...
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 van Genuchten capillary pressure <-> saturation relation. This class bundles th...
Definition: vangenuchten.hh:49
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 RichardsWellTracerProblem.
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:48
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity [] at a given location.
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:109
RichardsWellTracerSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:65
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the intrinsic permeability tensor [m^2] at a given location.
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:97
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameters for the material law at a given location.
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:121
Scalar PermeabilityType
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:63
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/richardsnc/implicit/spatialparams.hh:61
This model implements a variant of the Richards' equation for quasi-twophase flow.
This material law takes a material law defined for effective saturations and converts it to a materia...