12#ifndef DUMUX_SUBCONTROLVOLUME_HH
13#define DUMUX_SUBCONTROLVOLUME_HH
14#warning "This header is deprecated and will be removed after release 3.11"
25template<
class Imp,
class ScvGeometryTraits>
28 using Implementation = Imp;
29 using GridIndexType =
typename ScvGeometryTraits::GridIndexType;
30 using LocalIndexType =
typename ScvGeometryTraits::LocalIndexType;
31 using Scalar =
typename ScvGeometryTraits::Scalar;
42 return asImp_().center();
48 return asImp_().volume();
54 return asImp_().dofIndex();
60 return asImp_().localDofIndex();
66 return asImp_().dofPosition();
72 return asImp_().elementIndex();
76 const Implementation& asImp_()
const
77 {
return *
static_cast<const Implementation*
>(
this);}
79 Implementation& asImp_()
80 {
return *
static_cast<Implementation*
>(
this);}
Base class for a sub control volume, i.e a part of the control volume we are making the balance for....
Definition: subcontrolvolumebase.hh:27
GridIndexType dofIndex() const
The index of the dof this scv is embedded in (ccfv)
Definition: subcontrolvolumebase.hh:52
ScvGeometryTraits Traits
state the traits public and thus export all types
Definition: subcontrolvolumebase.hh:37
typename ScvGeometryTraits::GlobalPosition GlobalPosition
export the type used for global coordinates
Definition: subcontrolvolumebase.hh:35
Scalar volume() const
The volume of the sub control volume.
Definition: subcontrolvolumebase.hh:46
LocalIndexType localDofIndex() const
The index of the dof this scv is embedded in (box)
Definition: subcontrolvolumebase.hh:58
GlobalPosition dofPosition() const
Definition: subcontrolvolumebase.hh:64
GlobalPosition center() const
The center of the sub control volume.
Definition: subcontrolvolumebase.hh:40
GridIndexType elementIndex() const
The global index of the element this scv is embedded in.
Definition: subcontrolvolumebase.hh:70