3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
geomechanics/elastic/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_ELASTIC_SPATIAL_PARAMS_HH
26#define DUMUX_ELASTIC_SPATIAL_PARAMS_HH
27
30
31namespace Dumux {
32
37template<class Scalar, class GridGeometry>
39 GridGeometry,
40 ElasticSpatialParams<Scalar, GridGeometry> >
41{
44
45 using SubControlVolume = typename GridGeometry::SubControlVolume;
46 using GridView = typename GridGeometry::GridView;
47 using Element = typename GridView::template Codim<0>::Entity;
48 using GlobalPosition = typename Element::Geometry::GlobalCoordinate;
49
50public:
53
54 ElasticSpatialParams(std::shared_ptr<const GridGeometry> gridGeometry)
56 {
57 lameParams_.setLambda(3e9);
58 lameParams_.setMu(3e9);
59 }
60
62 const LameParams& lameParamsAtPos(const GlobalPosition& globalPos) const
63 { return lameParams_; }
64
65private:
66 LameParams lameParams_;
67};
68} // end namespace Dumux
69#endif
The base class for spatial parameters of linear 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
The base class for spatial parameters of linear elastic geomechanical problems.
Definition: fvelastic.hh:58
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fvelastic.hh:167
Definition of the spatial parameters for the linear elasticity problem.
Definition: geomechanics/elastic/spatialparams.hh:41
ElasticSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: geomechanics/elastic/spatialparams.hh:54
const LameParams & lameParamsAtPos(const GlobalPosition &globalPos) const
Defines the Lame parameters.
Definition: geomechanics/elastic/spatialparams.hh:62