3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/richards/implicit/nonisothermal/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_RICHARDSNI_SPATIAL_PARAMS_HH
26#define DUMUX_RICHARDSNI_SPATIAL_PARAMS_HH
27
33
34namespace Dumux {
35
36template<class GridGeometry, class Scalar>
38: public FVSpatialParams<GridGeometry, Scalar,
39 RichardsNISpatialParams<GridGeometry, Scalar>>
40{
41 using GridView = typename GridGeometry::GridView;
42 using FVElementGeometry = typename GridGeometry::LocalView;
43 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
44 using Element = typename GridView::template Codim<0>::Entity;
45 using ParentType = FVSpatialParams<GridGeometry, Scalar,
47
48 enum { dimWorld=GridView::dimensionworld };
49
51
52 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
53
54public:
55 // export permeability type
56 using PermeabilityType = Scalar;
57
60
61 RichardsNISpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
63 {
64 permeability_ = 1e-10;
65 porosity_ = 0.4;
66
67
68 // residual saturations
69 materialParams_.setSwr(0.05);
70 materialParams_.setSnr(0.0);
71
72 // parameters for the Van Genuchten law
73 // alpha and n
74
75 materialParams_.setVgAlpha(0.0037);
76 materialParams_.setVgn(4.7);
77 }
78
84 PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const
85 {
86 return permeability_;
87 }
88
94 Scalar porosityAtPos(const GlobalPosition& globalPos) const
95 {
96 return porosity_;
97 }
98
105 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition &globalPos) const
106 {
107 return materialParams_;
108 }
109
110private:
111
112 MaterialLawParams materialParams_;
113 Scalar permeability_;
114 Scalar porosity_;
115};
116
117} // end namespace Dumux
118
119#endif
Linear capillary pressure and relative permeability <-> saturation relations.
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
Implementation of the regularized van Genuchten's capillary pressure / relative permeability <-> satu...
Definition: regularizedvangenuchten.hh:71
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: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:40
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law which depends on the position.
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:105
Scalar PermeabilityType
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:56
RichardsNISpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:61
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Defines the intrinsic permeability .
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:84
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:59
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity .
Definition: porousmediumflow/richards/implicit/nonisothermal/spatialparams.hh:94
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...