28#ifndef EWOMS_PVS_LOCAL_RESIDUAL_HH
29#define EWOMS_PVS_LOCAL_RESIDUAL_HH
31#include <opm/material/common/MathToolbox.hpp>
32#include <opm/material/common/Valgrind.hpp>
47template <
class TypeTag>
60 enum { conti0EqIdx = Indices::conti0EqIdx };
74 template <
class LhsEval>
76 const ElementContext& elemCtx,
81 const IntensiveQuantities& intQuants = elemCtx.intensiveQuantities(dofIdx,
timeIdx);
82 const auto& fs = intQuants.fluidState();
99 template <
class LhsEval>
101 const ElementContext& elemCtx,
110 EnergyModule::addSolidEnergyStorage(
storage, elemCtx.intensiveQuantities(dofIdx,
timeIdx));
117 const ElementContext& elemCtx,
123 Valgrind::CheckDefined(
flux);
126 Valgrind::CheckDefined(
flux);
133 const ElementContext& elemCtx,
139 const unsigned focusDofIdx = elemCtx.focusDofIndex();
144 const IntensiveQuantities&
up = elemCtx.intensiveQuantities(
upIdx,
timeIdx);
150 const Evaluation tmp =
160 const Evaluation tmp =
161 Toolbox::value(
up.fluidState().molarDensity(
phaseIdx)) *
178 const ElementContext& elemCtx,
190 const ElementContext& elemCtx,
194 Valgrind::SetUndefined(source);
195 elemCtx.problem().source(source, elemCtx, dofIdx,
timeIdx);
196 Valgrind::CheckDefined(source);
Provides the auxiliary methods required for consideration of the diffusion equation.
Definition diffusionmodule.hh:51
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:54
Element-wise calculation of the local residual for the compositional multi-phase primary variable swi...
Definition pvslocalresidual.hh:49
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 pvslocalresidual.hh:75
void computeStorage(Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Evaluate the amount all conservation quantities (e.g.
Definition pvslocalresidual.hh:100
void computeSource(RateVector &source, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Calculate the source term of the equation.
Definition pvslocalresidual.hh:189
void addDiffusiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Adds the diffusive flux at a given flux integration point.
Definition pvslocalresidual.hh:177
void addAdvectiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Add the advective mass flux at a given flux integration point.
Definition pvslocalresidual.hh:132
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 pvslocalresidual.hh:116
Classes required for molecular diffusion.
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
Declare the properties used by the infrastructure code of the finite volume discretizations.
Defines the common properties required by the porous medium multi-phase models.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:240
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:233