3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/richards/implicit/analytical/spatialparams.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_RICHARDS_ANALYTICAL_SPATIAL_PARAMETERS_HH
26#define DUMUX_RICHARDS_ANALYTICAL_SPATIAL_PARAMETERS_HH
27
34
36
37namespace Dumux {
38
44template<class GridGeometry, class Scalar>
46: public FVSpatialParams<GridGeometry, Scalar,
47 RichardsAnalyticalSpatialParams<GridGeometry, Scalar>>
48{
49 using GridView = typename GridGeometry::GridView;
50 using ParentType = FVSpatialParams<GridGeometry, Scalar,
52
53 enum { dimWorld=GridView::dimensionworld };
54 using Element = typename GridView::template Codim<0>::Entity;
55
56 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
57
59
60public:
61
64 // export permeability type
65 using PermeabilityType = Scalar;
66
67 RichardsAnalyticalSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
69 {
70 K_ = 5e-12;
71 materialParams_.setSwr(0.0);
72 materialParams_.setSnr(0.0);
73 materialParams_.setEntryPc(0);
74 materialParams_.setMaxPc(1e10);
75 }
76
82 PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const
83 {
84 return K_;
85 }
86
92 Scalar porosityAtPos(const GlobalPosition& globalPos) const
93 { return 0.4; }
94
103 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition &globalPos) const
104 {
105 return materialParams_;
106 }
107
108private:
109 // intrinsic permeability
110 Scalar K_;
111
112 MaterialLawParams materialParams_;
113};
114} // end namespace
115
116#endif
Implementation of the capillary pressure and relative permeability <-> saturation relations according...
Linear capillary pressure and relative permeability <-> saturation relations.
Implementation of a regularized version of the Brooks-Corey capillary pressure / relative permeabilit...
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
Linear capillary pressure and relative permeability <-> saturation relations.
Definition: linearmaterial.hh:48
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 RichardsAnalyticalProblem.
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:48
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity [] at a given location.
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:92
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:63
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameters for the material law at a given location.
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:103
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the intrinsic permeability tensor [m^2] at a given location.
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:82
Scalar PermeabilityType
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:65
RichardsAnalyticalSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/richards/implicit/analytical/spatialparams.hh:67
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...