25#ifndef DUMUX_GEOMECHANICS_ELASTIC_LOCAL_RESIDUAL_HH
26#define DUMUX_GEOMECHANICS_ELASTIC_LOCAL_RESIDUAL_HH
39template<
class TypeTag>
45 using Element =
typename GridView::template Codim<0>::Entity;
50 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
51 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
55 using VolumeVariables =
typename ElementVolumeVariables::VolumeVariables;
61 using ParentType::ParentType;
72 const SubControlVolume& scv,
73 const VolumeVariables& volVars)
const
75 return NumEqVector(0.0);
90 const Element& element,
91 const FVElementGeometry& fvGeometry,
92 const ElementVolumeVariables& elemVolVars,
93 const SubControlVolumeFace& scvf,
94 const ElementFluxVariablesCache& elemFluxVarsCache)
const
97 return StressType::force(problem, element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
114 const Element& element,
115 const FVElementGeometry& fvGeometry,
116 const ElementVolumeVariables& elemVolVars,
117 const SubControlVolume &scv)
const
119 NumEqVector source(0.0);
122 source += problem.source(element, fvGeometry, elemVolVars, scv);
125 source += problem.scvPointSources(element, fvGeometry, elemVolVars, scv);
128 static const bool gravity = getParamFromGroup<bool>(problem.paramGroup(),
"Problem.EnableGravity");
131 const auto& g = problem.spatialParams().gravity(scv.center());
132 for (
int dir = 0; dir < GridView::dimensionworld; ++dir)
133 source[Indices::momentum(dir)] += elemVolVars[scv].solidDensity()*g[dir];
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:149
Element-wise calculation of the local residual for problems using the elastic model considering linea...
Definition: geomechanics/elastic/localresidual.hh:41
NumEqVector computeFlux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVariablesCache &elemFluxVarsCache) const
Evaluates the force in all grid directions acting on a face of a sub-control volume.
Definition: geomechanics/elastic/localresidual.hh:89
NumEqVector computeStorage(const Problem &problem, const SubControlVolume &scv, const VolumeVariables &volVars) const
For the elastic model the storage term is zero since we neglect inertia forces.
Definition: geomechanics/elastic/localresidual.hh:71
NumEqVector computeSource(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolume &scv) const
Calculate the source term of the equation.
Definition: geomechanics/elastic/localresidual.hh:113
Declares all properties used in Dumux.