28#ifndef EWOMS_IMMISCIBLE_LOCAL_RESIDUAL_BASE_HH
29#define EWOMS_IMMISCIBLE_LOCAL_RESIDUAL_BASE_HH
35#include <opm/material/common/Valgrind.hpp>
44template <
class TypeTag>
58 enum { conti0EqIdx = Indices::conti0EqIdx };
75 template <
class LhsEval>
77 const ElementContext& elemCtx,
84 const IntensiveQuantities& intQuants = elemCtx.intensiveQuantities(dofIdx,
timeIdx);
85 const auto& fs = intQuants.fluidState();
98 template <
class LhsEval>
100 const ElementContext& elemCtx,
108 EnergyModule::addSolidEnergyStorage(
storage, elemCtx.intensiveQuantities(dofIdx,
timeIdx));
115 const ElementContext& elemCtx,
130 const ElementContext& elemCtx,
144 const IntensiveQuantities&
up = elemCtx.intensiveQuantities(
upIdx, 0);
147 const Evaluation& rho =
up.fluidState().density(
phaseIdx);
166 const ElementContext& elemCtx,
183 const ElementContext& elemCtx,
187 Opm::Valgrind::SetUndefined(source);
188 elemCtx.problem().source(source, elemCtx, dofIdx,
timeIdx);
189 Opm::Valgrind::CheckDefined(source);
193 const Implementation& asImp_()
const
194 {
return *
static_cast<const Implementation *
>(
this); }
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
Calculates the local residual of the immiscible multi-phase model.
Definition immisciblelocalresidual.hh:46
void computeStorage(Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Evaluate the amount all conservation quantities (e.g.
Definition immisciblelocalresidual.hh:99
void addAdvectiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Add the advective mass flux at a given flux integration point.
Definition immisciblelocalresidual.hh:129
void computeSource(RateVector &source, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Calculate the source term of the equation.
Definition immisciblelocalresidual.hh:182
void addDiffusiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Adds the diffusive flux at a given flux integration point.
Definition immisciblelocalresidual.hh:165
void addPhaseStorage(Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx, unsigned phaseIdx) const
Adds the amount all conservation quantities (e.g.
Definition immisciblelocalresidual.hh:76
void computeFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Evaluates the total mass flux of all conservation quantities over a face of a sub-control volume.
Definition immisciblelocalresidual.hh:114
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
Defines the properties required for the immiscible multi-phase model.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
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:235