25#ifndef DUMUX_DISCRETIZATION_BOX_EFFECTIVE_STRESS_LAW_HH
26#define DUMUX_DISCRETIZATION_BOX_EFFECTIVE_STRESS_LAW_HH
40template<
class StressType,
class Gr
idGeometry>
43 using FVElementGeometry =
typename GridGeometry::LocalView;
44 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
45 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
47 using GridView =
typename GridGeometry::GridView;
48 using Element =
typename GridView::template Codim<0>::Entity;
50 static constexpr int dim = GridView::dimension;
51 static constexpr int dimWorld = GridView::dimensionworld;
52 static_assert(dim == dimWorld,
"EffectiveStressLaw not implemented for network/surface grids");
53 static_assert(StressType::discMethod ==
DiscretizationMethod::box,
"The provided stress type must be specialized for the box scheme");
57 using Scalar =
typename StressType::Scalar;
66 template<
class Problem,
class ElementVolumeVariables,
class ElementFluxVarsCache>
68 const Element& element,
69 const FVElementGeometry& fvGeometry,
70 const ElementVolumeVariables& elemVolVars,
71 const SubControlVolumeFace& scvf,
72 const ElementFluxVarsCache& elemFluxVarCache)
74 const auto sigma = stressTensor(problem, element, fvGeometry, elemVolVars, elemFluxVarCache[scvf]);
77 sigma.mv(scvf.unitOuterNormal(), scvfForce);
78 scvfForce *= scvf.area();
84 template<
class Problem,
class ElementVolumeVariables,
class FluxVarsCache>
86 const Element& element,
87 const FVElementGeometry& fvGeometry,
88 const ElementVolumeVariables& elemVolVars,
89 const FluxVarsCache& fluxVarsCache)
92 auto sigma = StressType::stressTensor(problem, element, fvGeometry, elemVolVars, fluxVarsCache);
95 const auto biotCoeff = problem.spatialParams().biotCoefficient(element, fvGeometry, elemVolVars, fluxVarsCache);
96 const auto effPress = problem.effectivePorePressure(element, fvGeometry, elemVolVars, fluxVarsCache);
99 const auto bcp = biotCoeff*effPress;
100 for (
int i = 0; i < dim; ++i)
107 template<
class Problem,
class ElementVolumeVariables,
class FluxVarsCache>
109 const Element& element,
110 const FVElementGeometry& fvGeometry,
111 const ElementVolumeVariables& elemVolVars,
112 const FluxVarsCache& fluxVarsCache)
113 {
return StressType::stressTensor(problem, element, fvGeometry, elemVolVars, fluxVarsCache); }
The available discretization methods in Dumux.
The effective stress law specialized for different discretization schemes. This computes the stress t...
DiscretizationMethod
The available discretization methods in Dumux.
Definition: method.hh:37
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
typename StressType::ForceVector ForceVector
export the type used for force vectors
Definition: box/effectivestresslaw.hh:61
typename StressType::StressTensor StressTensor
export the type used for the stress tensor
Definition: box/effectivestresslaw.hh:59
typename StressType::Scalar Scalar
export the type used for scalar values
Definition: box/effectivestresslaw.hh:57
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:108
static ForceVector force(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVarsCache &elemFluxVarCache)
computes the force acting on a sub-control volume face
Definition: box/effectivestresslaw.hh:67
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:85
This computes the stress tensor and surface forces resulting from poro-mechanical deformation.
Definition: effectivestresslaw.hh:39