28 #ifndef EWOMS_FV_BASE_EXTENSIVE_QUANTITIES_HH 29 #define EWOMS_FV_BASE_EXTENSIVE_QUANTITIES_HH 31 #include <opm/material/common/Valgrind.hpp> 46 template <
class TypeTag>
68 void update(
const ElementContext& elemCtx,
unsigned scvfIdx,
unsigned timeIdx)
70 const auto& scvf = elemCtx.stencil(timeIdx).interiorFace(scvfIdx);
71 interiorScvIdx_ = scvf.interiorIndex();
72 exteriorScvIdx_ = scvf.exteriorIndex();
75 (elemCtx.intensiveQuantities(interiorScvIdx_, timeIdx).extrusionFactor() +
76 elemCtx.intensiveQuantities(exteriorScvIdx_, timeIdx).extrusionFactor()) / 2;
77 Valgrind::CheckDefined(extrusionFactor_);
78 assert(extrusionFactor_ > 0);
91 template <
class Context,
class Flu
idState>
97 const unsigned dofIdx = context.interiorScvIndex(bfIdx, timeIdx);
98 interiorScvIdx_ =
static_cast<unsigned short>(dofIdx);
99 exteriorScvIdx_ =
static_cast<unsigned short>(dofIdx);
101 extrusionFactor_ = context.intensiveQuantities(bfIdx, timeIdx).extrusionFactor();
102 Valgrind::CheckDefined(extrusionFactor_);
103 assert(extrusionFactor_ > 0);
110 {
return extrusionFactor_; }
117 {
return interiorScvIdx_; }
124 {
return exteriorScvIdx_; }
128 unsigned short interiorScvIdx_{};
129 unsigned short exteriorScvIdx_{};
131 Scalar extrusionFactor_{};
Provide the properties at a face which make sense independently of the conserved quantities.
Definition: fvbaseextensivequantities.hh:47
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
void updateBoundary(const Context &context, unsigned bfIdx, unsigned timeIdx, const FluidState &)
Update the extensive quantities for a given boundary face.
Definition: fvbaseextensivequantities.hh:92
unsigned short exteriorIndex() const
Return the local index of the control volume which is on the "exterior" of the sub-control volume fac...
Definition: fvbaseextensivequantities.hh:123
unsigned short interiorIndex() const
Return the local index of the control volume which is on the "interior" of the sub-control volume fac...
Definition: fvbaseextensivequantities.hh:116
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:45
Declare the properties used by the infrastructure code of the finite volume discretizations.
void update(const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx)
Update the extensive quantities for a given sub-control-volume face.
Definition: fvbaseextensivequantities.hh:68
Scalar extrusionFactor() const
Returns th extrusion factor for the sub-control-volume face.
Definition: fvbaseextensivequantities.hh:109
static void registerParameters()
Register all run-time parameters for the extensive quantities.
Definition: fvbaseextensivequantities.hh:57