3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
stressvariablescache.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 *****************************************************************************/
24#ifndef DUMUX_GEOMECHANICS_STRESSVARIABLESCACHE_HH
25#define DUMUX_GEOMECHANICS_STRESSVARIABLESCACHE_HH
26
27#include <dune/common/exceptions.hh>
28
32
33namespace Dumux {
34
40template< class Scalar, class GridGeometry, DiscretizationMethod dm = GridGeometry::discMethod >
42
44template< class Scalar, class GridGeometry >
45class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::box>
46: public BoxFluxVariablesCache< Scalar, GridGeometry >
47{};
48
49// specialization for the cell centered tpfa method
50template< class Scalar, class GridGeometry >
52: public FluxVariablesCaching::_EmptyCache
53{
54public:
72 template<typename... Args>
73 void update(Args&&... args)
74 { DUNE_THROW(Dune::NotImplemented, "Geomechanics with cell-centered schemes"); }
75};
76
77// specialization for the cell centered mpfa method
78template< class Scalar, class GridGeometry >
80: public StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::cctpfa>
81{};
82
83} // end namespace Dumux
84
85#endif
The available discretization methods in Dumux.
Classes related to flux variables caching.
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
Definition: adapt.hh:29
Flux variables cache class for the box scheme. For the box scheme, this class does not contain any ph...
Definition: discretization/box/fluxvariablescache.hh:40
The stress variables cache classes for models involving geomechanics. Store data required for stress ...
Definition: stressvariablescache.hh:41
void update(Args &&... args)
Currently, we do not consider cell-centered schemes for geomechanics. In case this is to be integrate...
Definition: stressvariablescache.hh:73
Flux variables cache class for the box scheme.