3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
porousmediumflow/2p/implicit/fracture/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_TWOP_FRACTURE_TEST_SPATIALPARAMS_HH
27#define DUMUX_TWOP_FRACTURE_TEST_SPATIALPARAMS_HH
28
33
35
36namespace Dumux {
37
43template<class GridGeometry, class Scalar>
44class FractureSpatialParams
45: public FVSpatialParams<GridGeometry, Scalar,
46 FractureSpatialParams<GridGeometry, Scalar>>
47{
48 using GridView = typename GridGeometry::GridView;
49 using FVElementGeometry = typename GridGeometry::LocalView;
50 using SubControlVolume = typename FVElementGeometry::SubControlVolume;
51 using Element = typename GridView::template Codim<0>::Entity;
52 using ParentType = FVSpatialParams<GridGeometry, Scalar,
53 FractureSpatialParams<GridGeometry, Scalar>>;
54
55 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
56
57 using EffectiveLaw = RegularizedVanGenuchten<Scalar>;
58
59public:
61 using PermeabilityType = Scalar;
65
66 FractureSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
68 {
69 // residual saturations
70 materialParams_.setSwr(0.05);
71 materialParams_.setSnr(0.0);
72
73 // parameters for the Van Genuchten law
74 // alpha and n
75 materialParams_.setVgAlpha(0.0037);
76 materialParams_.setVgn(4.7);
77 }
78
84 Scalar permeabilityAtPos(const GlobalPosition& globalPos) const
85 { return 1e-10; }
86
92 Scalar porosityAtPos(const GlobalPosition& globalPos) const
93 { return 0.4; }
94
100 const MaterialLawParams& materialLawParamsAtPos(const GlobalPosition& globalPos) const
101 { return materialParams_; }
102
109 template<class FluidSystem>
110 int wettingPhaseAtPos(const GlobalPosition& globalPos) const
111 { return FluidSystem::phase0Idx; }
112
113private:
114 MaterialLawParams materialParams_;
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
FVSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: fv.hh:67
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Scalar permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the scalar intrinsic permeability .
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:84
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:110
FractureSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:66
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law.
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:100
Scalar PermeabilityType
Definition: porousmediumflow/1p/implicit/fracture2d3d/spatialparams.hh:53
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:64
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Returns the porosity .
Definition: porousmediumflow/2p/implicit/fracture/spatialparams.hh:92
Adaption of the fully implicit scheme to the two-phase flow model.
This material law takes a material law defined for effective saturations and converts it to a materia...