25#ifndef DUMUX_SOIL_SPATIAL_PARAMS_HH
26#define DUMUX_SOIL_SPATIAL_PARAMS_HH
39template<
class Gr
idGeometry,
class Scalar>
41:
public FVSpatialParams<GridGeometry,Scalar, SoilSpatialParams<GridGeometry, Scalar>>
45 using GridView =
typename GridGeometry::GridView;
46 using Element =
typename GridView::template Codim<0>::Entity;
47 using SubControlVolume =
typename GridGeometry::SubControlVolume;
48 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
62 materialParams_.setSwr(0.05);
63 materialParams_.setSnr(0.0);
67 materialParams_.setVgAlpha(2.956e-4);
68 materialParams_.setVgn(1.5);
71 permeability_ = getParam<Scalar>(
"Soil.SpatialParams.Permeability");
72 porosity_ = getParam<Scalar>(
"Soil.SpatialParams.Porosity");
82 template<
class ElementSolution>
84 const SubControlVolume& scv,
85 const ElementSolution& elemSol)
const
97 template<
class ElementSolution>
99 const SubControlVolume& scv,
100 const ElementSolution& elemSol)
const
114 {
return materialParams_; }
118 Scalar permeability_;
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
Implementation of the regularized version of the van Genuchten's capillary pressure / relative permea...
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
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 parameters for the soil problem.
Definition: 1p2c_richards2c/spatialparams_soil.hh:42
typename MaterialLaw::Params MaterialLawParams
Definition: 1p2c_richards2c/spatialparams_soil.hh:56
Scalar porosity(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Defines the porosity .
Definition: 1p2c_richards2c/spatialparams_soil.hh:98
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameters for the material law at a given location.
Definition: 1p2c_richards2c/spatialparams_soil.hh:113
Scalar PermeabilityType
Definition: 1p2c_richards2c/spatialparams_soil.hh:52
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Defines the intrinsic permeability .
Definition: 1p2c_richards2c/spatialparams_soil.hh:83
SoilSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: 1p2c_richards2c/spatialparams_soil.hh:58
This material law takes a material law defined for effective saturations and converts it to a materia...