3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
multidomain/boundary/darcydarcy/1p_2p/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_MULTIDOMAIN_1P_2P_TEST_SPATIAL_PARAMS_HH
26#define DUMUX_MULTIDOMAIN_1P_2P_TEST_SPATIAL_PARAMS_HH
27
31
32namespace Dumux {
33
39template<class GridGeometry, class Scalar>
41: public FVSpatialParams<GridGeometry, Scalar, TestSpatialParams<GridGeometry, Scalar>>
42{
45 using GridView = typename GridGeometry::GridView;
46 using Element = typename GridView::template Codim<0>::Entity;
47 using FVElementGeometry = typename GridGeometry::LocalView;
48 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
49
50 static constexpr int dimWorld = GridView::dimensionworld;
51 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
52
53public:
56
57 using PermeabilityType = Scalar;
58
59 TestSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
61 {
62 materialParams_.setSwr(0.05);
63 materialParams_.setSnr(0.0);
64 materialParams_.setVgAlpha(0.0037);
65 materialParams_.setVgn(4.7);
66 }
67
72 PermeabilityType permeabilityAtPos(const GlobalPosition& globalPos) const
73 {
74 return 1e-12;
75 }
76
82 Scalar porosityAtPos(const GlobalPosition& globalPos) const
83 {
84 return 0.3;
85 }
86
93 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const
94 {
95 return materialParams_;
96 }
97
104 template<class FluidSystem>
105 int wettingPhaseAtPos(const GlobalPosition& globalPos) const
106 {
107 return FluidSystem::phase0Idx;
108 }
109
110private:
111 MaterialLawParams materialParams_;
112};
113
114} // end namespace Dumux
115
116#endif
Implementation of the capillary pressure and relative permeability <-> saturation relations according...
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
The spatial parameters class for the test problem using the incompressible 1p model.
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:42
Scalar PermeabilityType
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:57
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity .
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:82
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law.
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:93
TestSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:59
PermeabilityType permeabilityAtPos(const GlobalPosition &globalPos) const
Function for defining the (intrinsic) permeability .
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:72
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:105
typename MaterialLaw::Params MaterialLawParams
Definition: multidomain/boundary/darcydarcy/1p_2p/spatialparams.hh:55
This material law takes a material law defined for effective saturations and converts it to a materia...