12#ifndef DUMUX_DISCRETIZATION_CC_TPFA_SUBCONTROLVOLUMEFACE_HH 
   13#define DUMUX_DISCRETIZATION_CC_TPFA_SUBCONTROLVOLUMEFACE_HH 
   18#include <dune/common/reservedvector.hh> 
   19#include <dune/geometry/type.hh> 
   20#include <dune/geometry/multilineargeometry.hh> 
   34template<
class Gr
idView>
 
   37    using Grid = 
typename GridView::Grid;
 
   39    static constexpr int dim = Grid::dimension;
 
   40    static constexpr int dimWorld = Grid::dimensionworld;
 
   46                                                          std::vector<GridIndexType>,
 
   47                                                          Dune::ReservedVector<GridIndexType, 2> >;
 
   55        template< 
int mydim, 
int cdim >
 
   58            using Type = Dune::ReservedVector< Dune::FieldVector< ct, cdim >, (1<<(
dim-1)) >;
 
 
 
 
   81    using GridIndexType = 
typename T::GridIndexType;
 
   82    using Scalar = 
typename T::Scalar;
 
   83    using CornerStorage = 
typename T::CornerStorage;
 
   84    using GridIndexStorage = 
typename T::GridIndexStorage;
 
   85    using BoundaryFlag = 
typename T::BoundaryFlag;
 
  105    template <
class Intersection>
 
  107                               const typename Intersection::Geometry& isGeometry,
 
  108                               GridIndexType scvfIndex,
 
  109                               const GridIndexStorage& scvIndices,
 
  112    , area_(isGeometry.
volume())
 
  113    , center_(isGeometry.
center())
 
  114    , unitOuterNormal_(is.centerUnitOuterNormal())
 
  115    , scvfIndex_(scvfIndex)
 
  116    , scvIndices_(scvIndices)
 
  117    , boundary_(isBoundary)
 
 
  149        return unitOuterNormal_;
 
 
  155        return scvIndices_[0];
 
 
  162        return scvIndices_[i+1];
 
 
  168        return scvIndices_.size()-1;
 
 
  180        return boundaryFlag_.get();
 
 
  187    GridIndexType scvfIndex_;
 
  188    GridIndexStorage scvIndices_;
 
 
Boundary flag to store e.g. in sub control volume faces.
Boundary flag to store e.g. in sub control volume faces.
Definition boundaryflag.hh:55
std::size_t value_type
Definition boundaryflag.hh:39
bool boundary() const
returns true if the sub control volume face is on the boundary
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:141
typename CCTpfaDefaultScvfGeometryTraits< GridView >::GlobalPosition GlobalPosition
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:89
const GlobalPosition & unitOuterNormal() const
The unit outer normal of the sub control volume face.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:147
GridIndexType outsideScvIdx(int i=0) const
Index of the i-th outside sub control volume or boundary scv index.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:160
BoundaryFlag::value_type boundaryFlag() const
Return the boundary flag.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:178
std::size_t numOutsideScvs() const
The number of scvs on the outside of this face.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:166
const GlobalPosition & center() const
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:122
GridIndexType insideScvIdx() const
index of the inside sub control volume
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:153
CCTpfaDefaultScvfGeometryTraits< GridView > Traits
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:91
const GlobalPosition & ipGlobal() const
The integration point for flux evaluations in global coordinates.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:128
GridIndexType index() const
The global index of this sub control volume face.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:172
CCTpfaSubControlVolumeFace(const Intersection &is, const typename Intersection::Geometry &isGeometry, GridIndexType scvfIndex, const GridIndexStorage &scvIndices, bool isBoundary)
Constructor with intersection.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:106
Scalar area() const
The area of the sub control volume face.
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:135
CCTpfaSubControlVolumeFace()=default
Base class for a sub control volume face, i.e a part of the boundary of a sub control volume we compu...
Definition subcontrolvolumefacebase.hh:29
auto volume(const Geometry &geo, unsigned int integrationOrder=4)
The volume of a given geometry.
Definition volume.hh:159
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:57
Dune::ReservedVector< Dune::FieldVector< ct, cdim >,(1<<(dim-1)) > Type
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:58
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:52
Default traits class to be used for the sub-control volume faces for the cell-centered finite volume ...
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:36
typename ScvfMLGTraits< Scalar >::template CornerStorage< dim-1, dimWorld >::Type CornerStorage
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:63
Dune::MultiLinearGeometry< Scalar, dim-1, dimWorld, ScvfMLGTraits< Scalar > > Geometry
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:62
typename GridView::Grid Grid
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:37
static constexpr int dim
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:39
typename CornerStorage::value_type GlobalPosition
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:64
typename IndexTraits< GridView >::LocalIndex LocalIndexType
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:44
typename std::conditional_t<(dim< dimWorld), std::vector< GridIndexType >, Dune::ReservedVector< GridIndexType, 2 > > GridIndexStorage
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:45
typename Grid::ctype Scalar
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:42
Dumux::BoundaryFlag< Grid > BoundaryFlag
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:65
typename IndexTraits< GridView >::GridIndex GridIndexType
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:43
static constexpr int dimWorld
Definition discretization/cellcentered/tpfa/subcontrolvolumeface.hh:40
typename GridView::IndexSet::IndexType GridIndex
Definition indextraits.hh:27
unsigned int LocalIndex
Definition indextraits.hh:28
Base class for a sub control volume face.