12#ifndef DUMUX_DISCRETIZATION_CC_SUBCONTROLVOLUME_HH
13#define DUMUX_DISCRETIZATION_CC_SUBCONTROLVOLUME_HH
25template<
class Gr
idView>
28 using Geometry =
typename GridView::template Codim<0>::Geometry;
31 using Scalar =
typename GridView::ctype;
32 using Element =
typename GridView::template Codim<0>::Entity;
47 using GridIndexType =
typename T::GridIndexType;
48 using LocalIndexType =
typename T::LocalIndexType;
49 using Scalar =
typename T::Scalar;
58 template<
class Geometry>
61 : volume_(geometry.
volume())
62 , center_(geometry.
center())
106 return elementIndex_;
112 GridIndexType elementIndex_;
GridIndexType elementIndex() const
Definition discretization/cellcentered/subcontrolvolume.hh:104
Scalar volume() const
Definition discretization/cellcentered/subcontrolvolume.hh:73
LocalIndexType localDofIndex() const
The element-local index of the dof this scv is embedded in.
Definition discretization/cellcentered/subcontrolvolume.hh:85
LocalIndexType indexInElement() const
Definition discretization/cellcentered/subcontrolvolume.hh:92
CCSubControlVolume(Geometry &&geometry, GridIndexType elementIndex)
Definition discretization/cellcentered/subcontrolvolume.hh:59
T Traits
Definition discretization/cellcentered/subcontrolvolume.hh:54
CCSubControlVolume()=default
typename T::GlobalPosition GlobalPosition
Definition discretization/cellcentered/subcontrolvolume.hh:52
const GlobalPosition & dofPosition() const
Definition discretization/cellcentered/subcontrolvolume.hh:98
GridIndexType dofIndex() const
The index of the dof this scv is embedded in (the global index of this scv).
Definition discretization/cellcentered/subcontrolvolume.hh:79
const GlobalPosition & center() const
Definition discretization/cellcentered/subcontrolvolume.hh:67
Default traits class to be used for the sub-control volumes for the cell-centered finite volume schem...
Definition discretization/cellcentered/subcontrolvolume.hh:27
typename IndexTraits< GridView >::GridIndex GridIndexType
Definition discretization/cellcentered/subcontrolvolume.hh:29
typename GridView::template Codim< 0 >::Geometry Geometry
Definition discretization/cellcentered/subcontrolvolume.hh:28
typename IndexTraits< GridView >::LocalIndex LocalIndexType
Definition discretization/cellcentered/subcontrolvolume.hh:30
typename GridView::template Codim< 0 >::Entity Element
Definition discretization/cellcentered/subcontrolvolume.hh:32
typename Element::Geometry::GlobalCoordinate GlobalPosition
Definition discretization/cellcentered/subcontrolvolume.hh:33
typename GridView::ctype Scalar
Definition discretization/cellcentered/subcontrolvolume.hh:31
typename GridView::IndexSet::IndexType GridIndex
Definition indextraits.hh:27
unsigned int LocalIndex
Definition indextraits.hh:28