12#ifndef DUMUX_DISCRETIZATION_PNM_SUBCONTROLVOLUME_HH 
   13#define DUMUX_DISCRETIZATION_PNM_SUBCONTROLVOLUME_HH 
   15#include <dune/geometry/affinegeometry.hh> 
   27template<
class Gr
idView>
 
   30    using Grid = 
typename GridView::Grid;
 
   32    static const int dim = Grid::dimension;
 
   33    static const int dimWorld = Grid::dimensionworld;
 
   39    using Geometry = Dune::AffineGeometry<Scalar, 1, dimWorld>;
 
 
   55    using GridIndexType = 
typename T::GridIndexType;
 
   56    using LocalIndexType = 
typename T::LocalIndexType;
 
   57    using Scalar = 
typename T::Scalar;
 
   58    using Geometry = 
typename T::Geometry;
 
   70    template<
class Corners>
 
   72                        LocalIndexType scvIdx,
 
   76    : center_(0.5*(corners[0]+corners[1]))
 
   77    , dofPosition_(corners[0])
 
   80    , localDofIdx_(scvIdx)
 
 
   95    { 
return localDofIdx_; }
 
 
   99    { 
return localDofIdx_; }
 
 
  103    { 
return dofIndex_; }
 
 
  107    { 
return dofPosition_; }
 
 
  111    { 
return elementIndex_; }
 
 
  117    GridIndexType elementIndex_;
 
  118    LocalIndexType localDofIdx_;
 
  119    GridIndexType dofIndex_;
 
 
PNMDefaultScvGeometryTraits< GridView > Traits
Definition discretization/porenetwork/subcontrolvolume.hh:64
LocalIndexType localDofIndex() const
The element-local index of the dof this scv is embedded in.
Definition discretization/porenetwork/subcontrolvolume.hh:94
GridIndexType dofIndex() const
Definition discretization/porenetwork/subcontrolvolume.hh:102
GridIndexType elementIndex() const
Definition discretization/porenetwork/subcontrolvolume.hh:110
const GlobalPosition & center() const
Definition discretization/porenetwork/subcontrolvolume.hh:86
Scalar volume() const
Definition discretization/porenetwork/subcontrolvolume.hh:90
PNMSubControlVolume(GridIndexType dofIndex, LocalIndexType scvIdx, GridIndexType elementIndex, Corners &&corners, const Scalar volume)
Definition discretization/porenetwork/subcontrolvolume.hh:71
PNMSubControlVolume()=default
The default constructor.
typename PNMDefaultScvGeometryTraits< GridView >::GlobalPosition GlobalPosition
Definition discretization/porenetwork/subcontrolvolume.hh:62
LocalIndexType indexInElement() const
The element-local index of this scv.
Definition discretization/porenetwork/subcontrolvolume.hh:98
const GlobalPosition & dofPosition() const
Definition discretization/porenetwork/subcontrolvolume.hh:106
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
Define some often used mathematical functions.
Definition discretization/porenetwork/fvelementgeometry.hh:24
typename GridView::IndexSet::IndexType GridIndex
Definition indextraits.hh:27
unsigned int LocalIndex
Definition indextraits.hh:28
Default traits class.
Definition discretization/porenetwork/subcontrolvolume.hh:29
static const int dim
Definition discretization/porenetwork/subcontrolvolume.hh:32
typename GridView::Grid Grid
Definition discretization/porenetwork/subcontrolvolume.hh:30
typename Grid::ctype Scalar
Definition discretization/porenetwork/subcontrolvolume.hh:37
Dune::AffineGeometry< Scalar, 1, dimWorld > Geometry
Definition discretization/porenetwork/subcontrolvolume.hh:39
static const int dimWorld
Definition discretization/porenetwork/subcontrolvolume.hh:33
Dune::FieldVector< Scalar, dimWorld > GlobalPosition
Definition discretization/porenetwork/subcontrolvolume.hh:38
typename IndexTraits< GridView >::LocalIndex LocalIndexType
Definition discretization/porenetwork/subcontrolvolume.hh:36
typename IndexTraits< GridView >::GridIndex GridIndexType
Definition discretization/porenetwork/subcontrolvolume.hh:35
Base class for a sub control volume.