24#ifndef DUMUX_SOLID_ENERGY_LOCAL_RESIDUAL_HH
25#define DUMUX_SOLID_ENERGY_LOCAL_RESIDUAL_HH
36template<
class TypeTag>
48 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
49 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
51 using Element =
typename GridView::template Codim<0>::Entity;
54 using ParentType::ParentType;
66 const SubControlVolume& scv,
67 const VolumeVariables& volVars)
const
70 storage[0] = volVars.temperatureSolid()
71 * volVars.solidHeatCapacity()
72 * volVars.solidDensity()
73 * (1.0 - volVars.porosity());
90 const Element& element,
91 const FVElementGeometry& fvGeometry,
92 const ElementVolumeVariables& elemVolVars,
93 const SubControlVolumeFace& scvf,
94 const ElementFluxVariablesCache& elemFluxVarsCache)
const
96 FluxVariables fluxVars;
97 fluxVars.init(problem, element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
98 return fluxVars.heatConductionFlux();
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 residual.
Definition: porousmediumflow/solidenergy/localresidual.hh:38
NumEqVector computeStorage(const Problem &problem, const SubControlVolume &scv, const VolumeVariables &volVars) const
Evaluate the rate of change of all conservation quantites.
Definition: porousmediumflow/solidenergy/localresidual.hh:65
NumEqVector computeFlux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVariablesCache &elemFluxVarsCache) const
Evaluate the energy flux over a face of a sub control volume.
Definition: porousmediumflow/solidenergy/localresidual.hh:89
Declares all properties used in Dumux.