version 3.8
box/effectivestresslaw.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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
13#ifndef DUMUX_DISCRETIZATION_BOX_EFFECTIVE_STRESS_LAW_HH
14#define DUMUX_DISCRETIZATION_BOX_EFFECTIVE_STRESS_LAW_HH
15
19
20namespace Dumux {
21
29template<class StressType, class GridGeometry>
30class EffectiveStressLaw<StressType, GridGeometry, typename GridGeometry::DiscretizationMethod>
31{
32 using FVElementGeometry = typename GridGeometry::LocalView;
33 using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
34 using Extrusion = Extrusion_t<GridGeometry>;
35
36 using GridView = typename GridGeometry::GridView;
37 using Element = typename GridView::template Codim<0>::Entity;
38
39 static constexpr int dim = GridView::dimension;
40 static constexpr int dimWorld = GridView::dimensionworld;
41 static_assert(dim == dimWorld, "EffectiveStressLaw not implemented for network/surface grids");
42 static_assert(StressType::discMethod == DiscretizationMethods::box, "The provided stress type must be specialized for the box scheme");
43
44public:
46 using Scalar = typename StressType::Scalar;
48 using StressTensor = typename StressType::StressTensor;
50 using ForceVector = typename StressType::ForceVector;
52
54 // state the discretization method this implementation belongs to
55 static constexpr DiscretizationMethod discMethod{};
56
60 template<class Problem, class ElementVolumeVariables, class ElementFluxVarsCache>
61 static ForceVector force(const Problem& problem,
62 const Element& element,
63 const FVElementGeometry& fvGeometry,
64 const ElementVolumeVariables& elemVolVars,
65 const SubControlVolumeFace& scvf,
66 const ElementFluxVarsCache& elemFluxVarCache)
67 {
68 const auto sigma = stressTensor(problem, element, fvGeometry, elemVolVars, elemFluxVarCache[scvf]);
69
70 ForceVector scvfForce(0.0);
71 sigma.mv(scvf.unitOuterNormal(), scvfForce);
72 scvfForce *= Extrusion::area(fvGeometry, scvf);
73
74 return scvfForce;
75 }
76
78 template<class Problem, class ElementVolumeVariables, class FluxVarsCache>
79 static StressTensor stressTensor(const Problem& problem,
80 const Element& element,
81 const FVElementGeometry& fvGeometry,
82 const ElementVolumeVariables& elemVolVars,
83 const FluxVarsCache& fluxVarsCache)
84 {
85 // compute the purely mechanical stress
86 auto sigma = StressType::stressTensor(problem, element, fvGeometry, elemVolVars, fluxVarsCache);
87
88 // obtain biot coefficient and effective pore pressure
89 const auto biotCoeff = problem.spatialParams().biotCoefficient(element, fvGeometry, elemVolVars, fluxVarsCache);
90 const auto effPress = problem.spatialParams().effectivePorePressure(element, fvGeometry, elemVolVars, fluxVarsCache);
91
92 // subtract pore pressure from the diagonal entries
93 const auto bcp = biotCoeff*effPress;
94 for (int i = 0; i < dim; ++i)
95 sigma[i][i] -= bcp;
96
97 return sigma;
98 }
99
101 template<class Problem, class ElementVolumeVariables, class FluxVarsCache>
102 static StressTensor effectiveStressTensor(const Problem& problem,
103 const Element& element,
104 const FVElementGeometry& fvGeometry,
105 const ElementVolumeVariables& elemVolVars,
106 const FluxVarsCache& fluxVarsCache)
107 { return StressType::stressTensor(problem, element, fvGeometry, elemVolVars, fluxVarsCache); }
108};
109
110} // end namespace Dumux
111
112#endif
typename StressType::ForceVector ForceVector
export the type used for force vectors
Definition: box/effectivestresslaw.hh:50
static StressTensor stressTensor(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const FluxVarsCache &fluxVarsCache)
assembles the (total) stress tensor of the porous medium at a given integration point
Definition: box/effectivestresslaw.hh:79
typename StressType::Scalar Scalar
export the type used for scalar values
Definition: box/effectivestresslaw.hh:46
static StressTensor effectiveStressTensor(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const FluxVarsCache &fluxVarsCache)
assembles the (effective) stress tensor of the solid skeleton at a given integration point
Definition: box/effectivestresslaw.hh:102
static ForceVector force(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVarsCache &elemFluxVarCache)
Computes the force (in Newton) acting on a sub-control volume face.
Definition: box/effectivestresslaw.hh:61
typename StressType::StressTensor StressTensor
export the type used for the stress tensor
Definition: box/effectivestresslaw.hh:48
This computes the stress tensor and surface forces resulting from poro-mechanical deformation.
Definition: effectivestresslaw_fwd.hh:27
Effective stress are used to describe the actual stresses acting on the grains/matrix in the soil....
Helper classes to compute the integration elements.
The available discretization methods in Dumux.
constexpr Box box
Definition: method.hh:147
CVFE< CVFEMethods::PQ1 > Box
Definition: method.hh:94
Definition: adapt.hh:17
typename Extrusion< T >::type Extrusion_t
Convenience alias for obtaining the extrusion type.
Definition: extrusion.hh:166
Definition: method.hh:46