25#ifndef DUMUX_PRORELASTIC_LOCAL_RESIDUAL_HH
26#define DUMUX_PRORELASTIC_LOCAL_RESIDUAL_HH
38template<
class TypeTag>
44 using Element =
typename GridView::template Codim<0>::Entity;
49 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
50 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
54 using VolumeVariables =
typename ElementVolumeVariables::VolumeVariables;
57 using ParentType::ParentType;
73 const Element& element,
74 const FVElementGeometry& fvGeometry,
75 const ElementVolumeVariables& elemVolVars,
76 const SubControlVolume &scv)
const
78 NumEqVector source(0.0);
81 source += problem.source(element, fvGeometry, elemVolVars, scv);
84 source += problem.scvPointSources(element, fvGeometry, elemVolVars, scv);
87 static const bool gravity = getParamFromGroup<bool>(problem.paramGroup(),
"Problem.EnableGravity");
91 const auto& vv = elemVolVars[scv];
92 const auto phi = vv.porosity();
93 const auto rhoFluid = problem.effectiveFluidDensity(element, scv);
94 const auto rhoAverage = phi*rhoFluid + (1.0 - phi*vv.solidDensity());
97 const auto& g = problem.spatialParams().gravity(scv.center());
98 for (
int dir = 0; dir < GridView::dimensionworld; ++dir)
99 source[ Indices::momentum(dir) ] += rhoAverage*g[dir];
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
Element-wise calculation of the local residual for problems using the poroelastic model.
Definition: geomechanics/poroelastic/localresidual.hh:40
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/poroelastic/localresidual.hh:72
Declares all properties used in Dumux.
Element-wise calculation of the local residual for problems using the elastic model considering linea...