28 #ifndef EWOMS_FV_BASE_INTENSIVE_QUANTITIES_HH 29 #define EWOMS_FV_BASE_INTENSIVE_QUANTITIES_HH 31 #include <opm/material/common/Valgrind.hpp> 43 template <
class TypeTag>
60 void update(
const ElementContext& elemCtx,
63 { extrusionFactor_ = elemCtx.problem().extrusionFactor(elemCtx, dofIdx, timeIdx); }
75 {
return extrusionFactor_; }
85 Scalar extrusionFactor_{};
88 const Implementation& asImp_()
const 89 {
return *
static_cast<const Implementation*
>(
this); }
91 Implementation& asImp_()
92 {
return *
static_cast<Implementation*
>(
this); }
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
Scalar extrusionFactor() const
Return how much a given sub-control volume is extruded.
Definition: fvbaseintensivequantities.hh:74
Base class for the model specific class which provides access to all intensive (i.e., volume averaged) quantities.
Definition: fvbaseintensivequantities.hh:44
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Declare the properties used by the infrastructure code of the finite volume discretizations.
void checkDefined() const
If running in valgrind this makes sure that all quantities in the intensive quantities are defined...
Definition: fvbaseintensivequantities.hh:81
void update(const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx)
Update all quantities for a given control volume.
Definition: fvbaseintensivequantities.hh:60
static void registerParameters()
Register all run-time parameters for the intensive quantities.
Definition: fvbaseintensivequantities.hh:54