14#ifndef DUMUX_ENERGY_LOCAL_RESIDUAL_INCOMPRESSIBLE_HH
15#define DUMUX_ENERGY_LOCAL_RESIDUAL_INCOMPRESSIBLE_HH
24template<
class TypeTag,
bool enableEneryBalance>
27template<
class TypeTag>
34template<
class TypeTag>
42template<
class TypeTag>
49 using SubControlVolume =
typename FVElementGeometry::SubControlVolume;
52 using Element =
typename GridView::template Codim<0>::Entity;
55 using Indices =
typename ModelTraits::Indices;
57 static constexpr int numPhases = ModelTraits::numFluidPhases();
58 enum { energyEqIdx = Indices::energyEqIdx };
83 FluxVariables& fluxVars,
87 auto upwindTerm = [phaseIdx](
const auto& volVars)
88 {
return volVars.density(phaseIdx)*volVars.mobility(phaseIdx)*volVars.internalEnergy(phaseIdx); };
90 flux[energyEqIdx] += fluxVars.advectiveFlux(phaseIdx, upwindTerm);
Definition: porousmediumflow/nonisothermal/localresidual.hh:24
static void heatConvectionFlux(NumEqVector &flux, FluxVariables &fluxVars, int phaseIdx)
The advective phase energy fluxes for incompressible flow.
Definition: localresidual_incompressible.hh:82
Definition: localresidual_incompressible.hh:25
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.
Element-wise calculation of the local residual for problems using fully implicit tracer model.