3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/3p3c/implicit/infiltration/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 *****************************************************************************/
26#ifndef DUMUX_INFILTRATION_THREEPTHREEC_SPATIAL_PARAMETERS_HH
27#define DUMUX_INFILTRATION_THREEPTHREEC_SPATIAL_PARAMETERS_HH
28
35
36namespace Dumux {
37
42template<class GridGeometry, class Scalar>
44: public FVSpatialParams<GridGeometry, Scalar,
45 InfiltrationThreePThreeCSpatialParams<GridGeometry, Scalar>>
46{
47 using GridView = typename GridGeometry::GridView;
48 using FVElementGeometry = typename GridGeometry::LocalView;
49 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
50 using Element = typename GridView::template Codim<0>::Entity;
51 using ParentType = FVSpatialParams<GridGeometry, Scalar,
53
55
56 using GlobalPosition = typename SubControlVolume::GlobalPosition;
57
58public:
61 using PermeabilityType = Scalar;
62
63 InfiltrationThreePThreeCSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
65 {
66 // intrinsic permeabilities
67 fineK_ = 1.e-11;
68 coarseK_ = 1.e-11;
69
70 // porosities
71 porosity_ = 0.40;
72
73 // residual saturations
74 materialParams_.setSwr(0.12);
75 materialParams_.setSnr(0.07);
76 materialParams_.setSgr(0.03);
77
78 // parameters for the 3phase van Genuchten law
79 materialParams_.setVgAlpha(0.0005);
80 materialParams_.setVgn(4.);
81 materialParams_.setKrRegardsSnr(false);
82
83 // parameters for adsorption
84 materialParams_.setKdNAPL(0.);
85 materialParams_.setRhoBulk(1500.);
86 }
87
97 template<class ElementSolution>
98 PermeabilityType permeability(const Element& element,
99 const SubControlVolume& scv,
100 const ElementSolution& elemSol) const
101 {
102 const auto& globalPos = scv.dofPosition();
103 if (isFineMaterial_(globalPos))
104 return fineK_;
105 return coarseK_;
106 }
107
113 Scalar porosityAtPos(const GlobalPosition& globalPos) const
114 {
115 return porosity_;
116 }
117
118
124 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const
125 {
126 return materialParams_;
127 }
128
129private:
130 bool isFineMaterial_(const GlobalPosition &globalPos) const
131 { return
132 70.0 <= globalPos[0] && globalPos[0] <= 85.0 &&
133 7.0 <= globalPos[1] && globalPos[1] <= 7.50;
134 }
135
136 Scalar fineK_;
137 Scalar coarseK_;
138
139 Scalar porosity_;
140
141 MaterialLawParams materialParams_;
142};
143
144} // end namespace Dumux
145
146#endif
Interface for plotting the three-phase fluid-matrix-interaction laws.
Implementation of a regularized version of van Genuchten's capillary pressure-saturation relation for...
Parameters that are necessary for the regularization of the Parker - Van Genuchten capillary pressure...
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 <-> saturation relation....
Definition: regularizedparkervangen3p.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
Definition of the spatial parameters for the infiltration problem.
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:46
InfiltrationThreePThreeCSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:63
Scalar PermeabilityType
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:61
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:60
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the material law which depends on the position.
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:124
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity .
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:113
PermeabilityType permeability(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Function for defining the (intrinsic) permeability .
Definition: porousmediumflow/3p3c/implicit/infiltration/spatialparams.hh:98
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...