3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
geomechanics/poroelastic/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_POROELASTIC_SPATIAL_PARAMS_HH
26#define DUMUX_POROELASTIC_SPATIAL_PARAMS_HH
27
31
32namespace Dumux {
33
38template<class Scalar, class GridGeometry>
40 GridGeometry,
41 PoroElasticSpatialParams<Scalar, GridGeometry> >
42{
45
46 using SubControlVolume = typename GridGeometry::SubControlVolume;
47 using GridView = typename GridGeometry::GridView;
48 using Element = typename GridView::template Codim<0>::Entity;
49 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
50
51public:
54
55 PoroElasticSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
57 {
58 lameParams_.setLambda(2);
59 lameParams_.setMu(2);
60 }
61
63 const LameParams& lameParamsAtPos(const GlobalPosition& globalPos) const
64 { return lameParams_; }
65
67 template< class ElemSol >
68 Scalar porosity(const Element& element,
69 const SubControlVolume& scv,
70 const ElemSol& elemSol) const
71 {
73 return poroLaw.evaluatePorosity(this->gridGeometry(), element, scv, elemSol, /*refPoro*/0.3);
74 }
75
77 Scalar biotCoefficientAtPos(const GlobalPosition& globalPos) const
78 { return 1.0; }
79
80private:
81 LameParams lameParams_;
82};
83} // end namespace Dumux
84#endif
A relationship for the porosity of a porous medium under mechanical deformation.
The base class for spatial parameters of poro-elastic geomechanical problems.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Structure encapsulating the lame parameters.
Definition: lameparams.hh:35
void setMu(Scalar mu)
set the second lame parameter
Definition: lameparams.hh:57
void setLambda(Scalar lambda)
set the first lame parameter
Definition: lameparams.hh:53
A relationship for the porosity of a porous medium under mechanical deformation.
Definition: porositydeformation.hh:39
static Scalar evaluatePorosity(const FVGridGeom &gridGeometry, const typename FVGridGeom::GridView::template Codim< 0 >::Entity &element, const typename FVGridGeom::GridView::template Codim< 0 >::Entity::Geometry::GlobalCoordinate &globalPos, const ElemSol &elemSol, Scalar refPoro, Scalar minPoro=0.0, Scalar maxPoro=1.0)
Calculates the porosity at a position inside an element.
Definition: porositydeformation.hh:65
The base class for spatial parameters of poro-elastic geomechanical problems.
Definition: fvporoelastic.hh:79
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fvporoelastic.hh:322
Definition of the spatial parameters for the poro-elastic problem.
Definition: geomechanics/poroelastic/spatialparams.hh:42
PoroElasticSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: geomechanics/poroelastic/spatialparams.hh:55
Scalar porosity(const Element &element, const SubControlVolume &scv, const ElemSol &elemSol) const
Returns the porosity of the porous medium.
Definition: geomechanics/poroelastic/spatialparams.hh:68
const LameParams & lameParamsAtPos(const GlobalPosition &globalPos) const
Defines the Lame parameters.
Definition: geomechanics/poroelastic/spatialparams.hh:63
Scalar biotCoefficientAtPos(const GlobalPosition &globalPos) const
Returns the Biot coefficient of the porous medium.
Definition: geomechanics/poroelastic/spatialparams.hh:77