28#ifndef OPM_PTFLASH_LOCAL_RESIDUAL_HH
29#define OPM_PTFLASH_LOCAL_RESIDUAL_HH
34#include <opm/material/common/Valgrind.hpp>
43template <
class TypeTag>
44class FlashLocalResidual:
public GetPropType<TypeTag, Properties::DiscLocalResidual>
56 enum { conti0EqIdx = Indices::conti0EqIdx };
70 template <
class LhsEval>
96 template <
class LhsEval>
119 Opm::Valgrind::CheckDefined(
flux);
122 Opm::Valgrind::CheckDefined(
flux);
156 Toolbox::value(
up.fluidState().density(
phaseIdx))
189 Opm::Valgrind::SetUndefined(source);
191 Opm::Valgrind::CheckDefined(source);
Provides the auxiliary methods required for consideration of the diffusion equation.
Definition diffusionmodule.hh:48
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
void computeStorage(Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Evaluate the amount all conservation quantities (e.g.
Definition flashlocalresidual.hh:97
void addDiffusiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Adds the diffusive flux at a given flux integration point.
Definition flashlocalresidual.hh:172
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 flashlocalresidual.hh:71
void computeSource(RateVector &source, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
Calculate the source term of the equation.
Definition flashlocalresidual.hh:184
void addAdvectiveFlux(RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
Add the advective mass flux at a given flux integration point.
Definition flashlocalresidual.hh:128
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 flashlocalresidual.hh:112
Classes required for molecular diffusion.
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
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