12#ifndef DUMUX_DISCRETIZATION_CC_SUBCONTROLVOLUME_HH
13#define DUMUX_DISCRETIZATION_CC_SUBCONTROLVOLUME_HH
26template<
class Gr
idView>
29 using Geometry =
typename GridView::template Codim<0>::Geometry;
32 using Scalar =
typename GridView::ctype;
33 using Element =
typename GridView::template Codim<0>::Entity;
50 using GridIndexType =
typename T::GridIndexType;
51 using LocalIndexType =
typename T::LocalIndexType;
52 using Scalar =
typename T::Scalar;
61 template<
class Geometry>
65 , volume_(geometry.
volume())
66 , center_(geometry.
center())
110 return elementIndex_;
116 GridIndexType elementIndex_;
Sub control volumes for cell-centered discretization schemes.
Definition: discretization/cellcentered/subcontrolvolume.hh:47
GridIndexType elementIndex() const
The global index of the element this scv is embedded in.
Definition: discretization/cellcentered/subcontrolvolume.hh:108
Scalar volume() const
The volume of the sub control volume.
Definition: discretization/cellcentered/subcontrolvolume.hh:77
LocalIndexType localDofIndex() const
The element-local index of the dof this scv is embedded in.
Definition: discretization/cellcentered/subcontrolvolume.hh:89
LocalIndexType indexInElement() const
Definition: discretization/cellcentered/subcontrolvolume.hh:96
CCSubControlVolume(Geometry &&geometry, GridIndexType elementIndex)
Definition: discretization/cellcentered/subcontrolvolume.hh:62
T Traits
state the traits public and thus export all types
Definition: discretization/cellcentered/subcontrolvolume.hh:57
CCSubControlVolume()=default
typename T::GlobalPosition GlobalPosition
export the type used for global coordinates
Definition: discretization/cellcentered/subcontrolvolume.hh:55
const GlobalPosition & dofPosition() const
Definition: discretization/cellcentered/subcontrolvolume.hh:102
GridIndexType dofIndex() const
The index of the dof this scv is embedded in (the global index of this scv)
Definition: discretization/cellcentered/subcontrolvolume.hh:83
const GlobalPosition & center() const
The center of the sub control volume.
Definition: discretization/cellcentered/subcontrolvolume.hh:71
Base class for a sub control volume, i.e a part of the control volume we are making the balance for....
Definition: subcontrolvolumebase.hh:26
Default traits class to be used for the sub-control volumes for the cell-centered finite volume schem...
Definition: discretization/cellcentered/subcontrolvolume.hh:28
typename IndexTraits< GridView >::GridIndex GridIndexType
Definition: discretization/cellcentered/subcontrolvolume.hh:30
typename GridView::template Codim< 0 >::Geometry Geometry
Definition: discretization/cellcentered/subcontrolvolume.hh:29
typename IndexTraits< GridView >::LocalIndex LocalIndexType
Definition: discretization/cellcentered/subcontrolvolume.hh:31
typename GridView::template Codim< 0 >::Entity Element
Definition: discretization/cellcentered/subcontrolvolume.hh:33
typename Element::Geometry::GlobalCoordinate GlobalPosition
Definition: discretization/cellcentered/subcontrolvolume.hh:34
typename GridView::ctype Scalar
Definition: discretization/cellcentered/subcontrolvolume.hh:32
typename GridView::IndexSet::IndexType GridIndex
Definition: indextraits.hh:27
unsigned int LocalIndex
Definition: indextraits.hh:28
Base class for a sub control volume.