12#ifndef DUMUX_SOLID_ENERGY_LOCAL_RESIDUAL_HH
13#define DUMUX_SOLID_ENERGY_LOCAL_RESIDUAL_HH
24template<
class TypeTag>
36 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
37 using SubControlVolumeFace =
typename FVElementGeometry::SubControlVolumeFace;
39 using Element =
typename GridView::template Codim<0>::Entity;
42 using ParentType::ParentType;
54 const SubControlVolume& scv,
55 const VolumeVariables& volVars)
const
58 storage[0] = volVars.temperatureSolid()
59 * volVars.solidHeatCapacity()
60 * volVars.solidDensity()
61 * (1.0 - volVars.porosity());
78 const Element& element,
79 const FVElementGeometry& fvGeometry,
80 const ElementVolumeVariables& elemVolVars,
81 const SubControlVolumeFace& scvf,
82 const ElementFluxVariablesCache& elemFluxVarsCache)
const
84 FluxVariables fluxVars;
85 fluxVars.init(problem, element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
86 return fluxVars.heatConductionFlux();
Element-wise calculation of the residual.
Definition: porousmediumflow/solidenergy/localresidual.hh:26
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:53
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:77
Defines all properties used in Dumux.
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:34
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
A helper to deduce a vector with the same size as numbers of equations.