3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/3p/implicit/conduction/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_THREEPNI_SPATIAL_PARAMS_HH
26#define DUMUX_THREEPNI_SPATIAL_PARAMS_HH
27
33
34namespace Dumux {
35
40template<class GridGeometry, class Scalar>
42: public FVSpatialParams<GridGeometry, Scalar,
43 ThreePNISpatialParams<GridGeometry, Scalar>>
44{
45 using GridView = typename GridGeometry::GridView;
46 using FVElementGeometry = typename GridGeometry::LocalView;
47 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
48 using Element = typename GridView::template Codim<0>::Entity;
49 using ParentType = FVSpatialParams<GridGeometry, Scalar,
51
53
54 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
55
56public:
58 using PermeabilityType = Scalar;
59
62
63 ThreePNISpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
65 {
66 permeability_ = 1e-10;
67 porosity_ = 0.4;
68
69 // residual saturations
70 materialParams_.setSwr(0.12);
71 materialParams_.setSnr(0.10);
72 materialParams_.setSgr(0.01);
73
74 // parameters for the 3phase van Genuchten law
75 materialParams_.setVgAlpha(0.5);
76 materialParams_.setVgn(4.0);
77 materialParams_.setKrRegardsSnr(true);
78
79 // parameters for adsorption
80 materialParams_.setKdNAPL(0.);
81 materialParams_.setRhoBulk(1500.);
82 }
83
89 PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const
90 {
91 return permeability_;
92 }
93
99 Scalar porosityAtPos(const GlobalPosition& globalPos) const
100 {
101 return porosity_;
102 }
103
109 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const
110 {
111 return materialParams_;
112 }
113
114private:
115
116 MaterialLawParams materialParams_;
117 Scalar permeability_;
118 Scalar porosity_;
119};
120
121} // end namespace Dumux
122
123#endif
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 3pni problems.
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:44
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:61
ThreePNISpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:63
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law.
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:109
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the scalar intrinsic permeability .
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:89
Scalar PermeabilityType
Export permeability type.
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:58
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity .
Definition: porousmediumflow/3p/implicit/conduction/spatialparams.hh:99
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...