25#ifndef DUMUX_PRORELASTIC_LOCAL_RESIDUAL_HH
26#define DUMUX_PRORELASTIC_LOCAL_RESIDUAL_HH
40template<
class TypeTag>
46 using Element =
typename GridView::template Codim<0>::Entity;
51 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
52 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
56 using VolumeVariables =
typename ElementVolumeVariables::VolumeVariables;
59 using ParentType::ParentType;
75 const Element& element,
76 const FVElementGeometry& fvGeometry,
77 const ElementVolumeVariables& elemVolVars,
78 const SubControlVolume &scv)
const
80 NumEqVector source(0.0);
83 source += problem.source(element, fvGeometry, elemVolVars, scv);
86 source += problem.scvPointSources(element, fvGeometry, elemVolVars, scv);
89 static const bool gravity = getParamFromGroup<bool>(problem.paramGroup(),
"Problem.EnableGravity");
93 const auto& vv = elemVolVars[scv];
94 const auto phi = vv.porosity();
95 const auto rhoFluid = Deprecated::effectiveFluidDensity(problem, element, scv);
96 const auto rhoAverage = phi*rhoFluid + (1.0 - phi*vv.solidDensity());
99 const auto& g = problem.spatialParams().gravity(scv.center());
100 for (
int dir = 0; dir < GridView::dimensionworld; ++dir)
101 source[ Indices::momentum(dir) ] += rhoAverage*g[dir];
A helper to deduce a vector with the same size as numbers of equations.
typename NumEqVectorTraits< PrimaryVariables >::type NumEqVector
A vector with the same size as numbers of equations This is the default implementation and has to be ...
Definition: numeqvector.hh:46
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Element-wise calculation of the local residual for problems using the elastic model considering linea...
Definition: geomechanics/elastic/localresidual.hh:42
Element-wise calculation of the local residual for problems using the poroelastic model.
Definition: geomechanics/poroelastic/localresidual.hh:42
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:74
Declares all properties used in Dumux.
Element-wise calculation of the local residual for problems using the elastic model considering linea...