28#ifndef EWOMS_FV_BASE_CONSTRAINTS_CONTEXT_HH
29#define EWOMS_FV_BASE_CONSTRAINTS_CONTEXT_HH
33#include <dune/common/fvector.hh>
42template<
class TypeTag>
49 using Element =
typename GridView::template Codim<0>::Entity;
51 enum { dimWorld = GridView::dimensionworld };
53 using CoordScalar =
typename GridView::ctype;
54 using GlobalPosition = Dune::FieldVector<CoordScalar, dimWorld>;
68 {
return elemCtx_.problem(); }
74 {
return elemCtx_.model(); }
80 {
return elemCtx_.gridView(); }
86 {
return elemCtx_.element(); }
92 {
return elemCtx_.numDof(
timeIdx); }
98 {
return elemCtx_.numInteriorFaces(
timeIdx); }
113 const ElementContext& elemCtx_;
Represents all quantities which available for calculating constraints.
Definition fvbaseconstraintscontext.hh:44
int globalSpaceIndex(int dofIdx, int timeIdx) const
Definition fvbaseconstraintscontext.hh:103
const GridView & gridView() const
Definition fvbaseconstraintscontext.hh:79
int numDof(int timeIdx) const
Definition fvbaseconstraintscontext.hh:91
FvBaseConstraintsContext(const ElementContext &elemCtx)
The constructor.
Definition fvbaseconstraintscontext.hh:60
const Model & model() const
Definition fvbaseconstraintscontext.hh:73
const Problem & problem() const
Definition fvbaseconstraintscontext.hh:67
GlobalPosition pos(int dofIdx, int timeIdx) const
Definition fvbaseconstraintscontext.hh:109
const Element & element() const
Definition fvbaseconstraintscontext.hh:85
int numInteriorFaces(int timeIdx) const
Definition fvbaseconstraintscontext.hh:97
Declare the properties used by the infrastructure code of the finite volume discretizations.
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