3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Dumux::StaggeredFVGridGeometry< GV, false, Traits > Class Template Reference

Base class for the finite volume geometry vector for staggered models This builds up the sub control volumes and sub control volume faces for each element. Specialization in case the FVElementGeometries are stored. More...

#include <dumux/discretization/staggered/fvgridgeometry.hh>

Inheritance diagram for Dumux::StaggeredFVGridGeometry< GV, false, Traits >:
Inheritance graph

Description

template<class GV, class Traits>
class Dumux::StaggeredFVGridGeometry< GV, false, Traits >

Base class for the finite volume geometry vector for staggered models This builds up the sub control volumes and sub control volume faces for each element. Specialization in case the FVElementGeometries are stored.

Public Types

using GeometryHelper = typename Traits::GeometryHelper
 
using LocalView = typename Traits::template LocalView< ThisType, false >
 export the type of the fv element geometry (the local view type) More...
 
using SubControlVolume = typename Traits::SubControlVolume
 export the type of sub control volume More...
 
using SubControlVolumeFace = typename Traits::SubControlVolumeFace
 export the type of sub control volume More...
 
using GridView = GV
 export the grid view type More...
 
using DofTypeIndices = typename Traits::DofTypeIndices
 export the dof type indices More...
 
using CellCenterFVGridGeometryType = CellCenterFVGridGeometry< ThisType >
 
using FaceFVGridGeometryType = FaceFVGridGeometry< ThisType >
 
using FVGridGeometryTuple = std::tuple< CellCenterFVGridGeometry< ThisType >, FaceFVGridGeometry< ThisType > >
 
using Grid = typename GV::Grid
 export the grid type More...
 
using GlobalCoordinate = typename Element::Geometry::GlobalCoordinate
 export the global coordinate type More...
 
using ElementMapper = typename Traits::ElementMapper
 export the element mapper type More...
 
using VertexMapper = typename Traits::VertexMapper
 export the vertex mapper type More...
 

Public Member Functions

 StaggeredFVGridGeometry (const GridView &gridView, const std::string &paramGroup="")
 Constructor. More...
 
void update ()
 update all fvElementGeometries (do this again after grid adaption) More...
 
std::size_t numScv () const
 The total number of sub control volumes. More...
 
std::size_t numScvf () const
 The total number of sub control volume faces. More...
 
std::size_t numBoundaryScvf () const
 The total number of boundary sub control volume faces. More...
 
std::size_t numIntersections () const
 The total number of intersections. More...
 
std::size_t numDofs () const
 the total number of dofs More...
 
std::size_t numCellCenterDofs () const
 
std::size_t numFaceDofs () const
 
const std::vector< GridIndexType > & scvfIndicesOfScv (GridIndexType scvIdx) const
 
GridIndexType localToGlobalScvfIndex (GridIndexType eIdx, LocalIndexType localScvfIdx) const
 
const ConnectivityMap & connectivityMap () const
 Returns the connectivity map of which dofs have derivatives with respect to a given dof. More...
 
std::unique_ptr< CellCenterFVGridGeometry< ThisType > > cellCenterFVGridGeometryPtr () const
 Returns a pointer the cell center specific auxiliary class. Required for the multi-domain FVAssembler's ctor. More...
 
std::unique_ptr< FaceFVGridGeometry< ThisType > > faceFVGridGeometryPtr () const
 Returns a pointer the face specific auxiliary class. Required for the multi-domain FVAssembler's ctor. More...
 
CellCenterFVGridGeometry< ThisTypecellCenterFVGridGeometry () const
 Return a copy of the cell center specific auxiliary class. More...
 
FaceFVGridGeometry< ThisTypefaceFVGridGeometry () const
 Return a copy of the face specific auxiliary class. More...
 
const IntersectionMapper & intersectionMapper () const
 Return a reference to the intersection mapper. More...
 
const std::vector< GridIndexType > & neighborVolVarIndices (GridIndexType scvIdx) const
 Return the neighbor volVar indices for all scvfs in the scv with index scvIdx. More...
 
const GridViewgridView () const
 Return the gridView this grid geometry object lives on. More...
 
const VertexMappervertexMapper () const
 Returns the mapper for vertices to indices for constant grids. More...
 
VertexMappervertexMapper ()
 Returns the mapper for vertices to indices for possibly adaptive grids. More...
 
const ElementMapperelementMapper () const
 Returns the mapper for elements to indices for constant grids. More...
 
ElementMapperelementMapper ()
 Returns the mapper for elements to indices for possibly adaptive grids. More...
 
const BoundingBoxTreeboundingBoxTree () const
 Returns the bounding box tree of the grid. More...
 
const ElementMapelementMap () const
 Returns the element index to element map. More...
 
template<class Scv , std::enable_if_t<!std::is_arithmetic< Scv >::value, int > = 0>
Element element (const Scv &scv) const
 Get an element from a sub-control volume. More...
 
Element element (GridIndexType eIdx) const
 Get an element from a global element index. More...
 
const GlobalCoordinatebBoxMin () const
 The coordinate of the corner of the GridView's bounding box with the smallest values. More...
 
const GlobalCoordinatebBoxMax () const
 The coordinate of the corner of the GridView's bounding box with the largest values. More...
 
bool isPeriodic () const
 Returns if the grid geometry is periodic (at all) More...
 
void setPeriodic (bool value=true)
 Set the periodicity of the grid geometry. More...
 

Static Public Member Functions

static constexpr auto cellCenterIdx ()
 return a integral constant for cell center dofs More...
 
static constexpr auto faceIdx ()
 return a integral constant for face dofs More...
 
static constexpr int upwindStencilOrder ()
 The order of the stencil built. More...
 

Static Public Attributes

static constexpr DiscretizationMethod discMethod = DiscretizationMethod::staggered
 export discretization method More...
 
static constexpr int upwindSchemeOrder = Traits::upwindSchemeOrder
 
static constexpr bool useHigherOrder = upwindSchemeOrder > 1
 

Member Typedef Documentation

◆ CellCenterFVGridGeometryType

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::CellCenterFVGridGeometryType = CellCenterFVGridGeometry<ThisType>

◆ DofTypeIndices

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::DofTypeIndices = typename Traits::DofTypeIndices

export the dof type indices

◆ ElementMapper

template<class GV , class Traits >
using Dumux::BaseGridGeometry< GV, Traits >::ElementMapper = typename Traits::ElementMapper
inherited

export the element mapper type

◆ FaceFVGridGeometryType

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::FaceFVGridGeometryType = FaceFVGridGeometry<ThisType>

◆ FVGridGeometryTuple

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::FVGridGeometryTuple = std::tuple< CellCenterFVGridGeometry<ThisType>, FaceFVGridGeometry<ThisType> >

◆ GeometryHelper

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::GeometryHelper = typename Traits::GeometryHelper

◆ GlobalCoordinate

template<class GV , class Traits >
using Dumux::BaseGridGeometry< GV, Traits >::GlobalCoordinate = typename Element::Geometry::GlobalCoordinate
inherited

export the global coordinate type

◆ Grid

template<class GV , class Traits >
using Dumux::BaseGridGeometry< GV, Traits >::Grid = typename GV::Grid
inherited

export the grid type

◆ GridView

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::GridView = GV

export the grid view type

◆ LocalView

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::LocalView = typename Traits::template LocalView<ThisType, false>

export the type of the fv element geometry (the local view type)

◆ SubControlVolume

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::SubControlVolume = typename Traits::SubControlVolume

export the type of sub control volume

◆ SubControlVolumeFace

template<class GV , class Traits >
using Dumux::StaggeredFVGridGeometry< GV, false, Traits >::SubControlVolumeFace = typename Traits::SubControlVolumeFace

export the type of sub control volume

◆ VertexMapper

template<class GV , class Traits >
using Dumux::BaseGridGeometry< GV, Traits >::VertexMapper = typename Traits::VertexMapper
inherited

export the vertex mapper type

Constructor & Destructor Documentation

◆ StaggeredFVGridGeometry()

template<class GV , class Traits >
Dumux::StaggeredFVGridGeometry< GV, false, Traits >::StaggeredFVGridGeometry ( const GridView gridView,
const std::string &  paramGroup = "" 
)
inline

Constructor.

Member Function Documentation

◆ bBoxMax()

template<class GV , class Traits >
const GlobalCoordinate & Dumux::BaseGridGeometry< GV, Traits >::bBoxMax ( ) const
inlineinherited

The coordinate of the corner of the GridView's bounding box with the largest values.

◆ bBoxMin()

template<class GV , class Traits >
const GlobalCoordinate & Dumux::BaseGridGeometry< GV, Traits >::bBoxMin ( ) const
inlineinherited

The coordinate of the corner of the GridView's bounding box with the smallest values.

◆ boundingBoxTree()

template<class GV , class Traits >
const BoundingBoxTree & Dumux::BaseGridGeometry< GV, Traits >::boundingBoxTree ( ) const
inlineinherited

Returns the bounding box tree of the grid.

◆ cellCenterFVGridGeometry()

template<class GV , class Traits >
CellCenterFVGridGeometry< ThisType > Dumux::StaggeredFVGridGeometry< GV, false, Traits >::cellCenterFVGridGeometry ( ) const
inline

Return a copy of the cell center specific auxiliary class.

◆ cellCenterFVGridGeometryPtr()

template<class GV , class Traits >
std::unique_ptr< CellCenterFVGridGeometry< ThisType > > Dumux::StaggeredFVGridGeometry< GV, false, Traits >::cellCenterFVGridGeometryPtr ( ) const
inline

Returns a pointer the cell center specific auxiliary class. Required for the multi-domain FVAssembler's ctor.

◆ cellCenterIdx()

template<class GV , class Traits >
static constexpr auto Dumux::StaggeredFVGridGeometry< GV, false, Traits >::cellCenterIdx ( )
inlinestaticconstexpr

return a integral constant for cell center dofs

◆ connectivityMap()

template<class GV , class Traits >
const ConnectivityMap & Dumux::StaggeredFVGridGeometry< GV, false, Traits >::connectivityMap ( ) const
inline

Returns the connectivity map of which dofs have derivatives with respect to a given dof.

◆ element() [1/2]

template<class GV , class Traits >
template<class Scv , std::enable_if_t<!std::is_arithmetic< Scv >::value, int > = 0>
Element Dumux::BaseGridGeometry< GV, Traits >::element ( const Scv &  scv) const
inlineinherited

Get an element from a sub-control volume.

Note
This interface is deprecated

◆ element() [2/2]

template<class GV , class Traits >
Element Dumux::BaseGridGeometry< GV, Traits >::element ( GridIndexType  eIdx) const
inlineinherited

Get an element from a global element index.

◆ elementMap()

template<class GV , class Traits >
const ElementMap & Dumux::BaseGridGeometry< GV, Traits >::elementMap ( ) const
inlineinherited

Returns the element index to element map.

◆ elementMapper() [1/2]

template<class GV , class Traits >
ElementMapper & Dumux::BaseGridGeometry< GV, Traits >::elementMapper ( )
inlineinherited

Returns the mapper for elements to indices for possibly adaptive grids.

◆ elementMapper() [2/2]

template<class GV , class Traits >
const ElementMapper & Dumux::BaseGridGeometry< GV, Traits >::elementMapper ( ) const
inlineinherited

Returns the mapper for elements to indices for constant grids.

◆ faceFVGridGeometry()

template<class GV , class Traits >
FaceFVGridGeometry< ThisType > Dumux::StaggeredFVGridGeometry< GV, false, Traits >::faceFVGridGeometry ( ) const
inline

Return a copy of the face specific auxiliary class.

◆ faceFVGridGeometryPtr()

template<class GV , class Traits >
std::unique_ptr< FaceFVGridGeometry< ThisType > > Dumux::StaggeredFVGridGeometry< GV, false, Traits >::faceFVGridGeometryPtr ( ) const
inline

Returns a pointer the face specific auxiliary class. Required for the multi-domain FVAssembler's ctor.

◆ faceIdx()

template<class GV , class Traits >
static constexpr auto Dumux::StaggeredFVGridGeometry< GV, false, Traits >::faceIdx ( )
inlinestaticconstexpr

return a integral constant for face dofs

◆ gridView()

template<class GV , class Traits >
const GridView & Dumux::BaseGridGeometry< GV, Traits >::gridView ( ) const
inlineinherited

Return the gridView this grid geometry object lives on.

◆ intersectionMapper()

template<class GV , class Traits >
const IntersectionMapper & Dumux::StaggeredFVGridGeometry< GV, false, Traits >::intersectionMapper ( ) const
inline

Return a reference to the intersection mapper.

◆ isPeriodic()

template<class GV , class Traits >
bool Dumux::BaseGridGeometry< GV, Traits >::isPeriodic ( ) const
inlineinherited

Returns if the grid geometry is periodic (at all)

◆ localToGlobalScvfIndex()

template<class GV , class Traits >
GridIndexType Dumux::StaggeredFVGridGeometry< GV, false, Traits >::localToGlobalScvfIndex ( GridIndexType  eIdx,
LocalIndexType  localScvfIdx 
) const
inline

◆ neighborVolVarIndices()

template<class GV , class Traits >
const std::vector< GridIndexType > & Dumux::StaggeredFVGridGeometry< GV, false, Traits >::neighborVolVarIndices ( GridIndexType  scvIdx) const
inline

Return the neighbor volVar indices for all scvfs in the scv with index scvIdx.

◆ numBoundaryScvf()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numBoundaryScvf ( ) const
inline

The total number of boundary sub control volume faces.

◆ numCellCenterDofs()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numCellCenterDofs ( ) const
inline

◆ numDofs()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numDofs ( ) const
inline

the total number of dofs

◆ numFaceDofs()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numFaceDofs ( ) const
inline

◆ numIntersections()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numIntersections ( ) const
inline

The total number of intersections.

◆ numScv()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numScv ( ) const
inline

The total number of sub control volumes.

◆ numScvf()

template<class GV , class Traits >
std::size_t Dumux::StaggeredFVGridGeometry< GV, false, Traits >::numScvf ( ) const
inline

The total number of sub control volume faces.

◆ scvfIndicesOfScv()

template<class GV , class Traits >
const std::vector< GridIndexType > & Dumux::StaggeredFVGridGeometry< GV, false, Traits >::scvfIndicesOfScv ( GridIndexType  scvIdx) const
inline

◆ setPeriodic()

template<class GV , class Traits >
void Dumux::BaseGridGeometry< GV, Traits >::setPeriodic ( bool  value = true)
inlineinherited

Set the periodicity of the grid geometry.

◆ update()

template<class GV , class Traits >
void Dumux::StaggeredFVGridGeometry< GV, false, Traits >::update ( )
inline

update all fvElementGeometries (do this again after grid adaption)

◆ upwindStencilOrder()

template<class GV , class Traits >
static constexpr int Dumux::StaggeredFVGridGeometry< GV, false, Traits >::upwindStencilOrder ( )
inlinestaticconstexpr

The order of the stencil built.

◆ vertexMapper() [1/2]

template<class GV , class Traits >
VertexMapper & Dumux::BaseGridGeometry< GV, Traits >::vertexMapper ( )
inlineinherited

Returns the mapper for vertices to indices for possibly adaptive grids.

◆ vertexMapper() [2/2]

template<class GV , class Traits >
const VertexMapper & Dumux::BaseGridGeometry< GV, Traits >::vertexMapper ( ) const
inlineinherited

Returns the mapper for vertices to indices for constant grids.

Member Data Documentation

◆ discMethod

template<class GV , class Traits >
constexpr DiscretizationMethod Dumux::StaggeredFVGridGeometry< GV, false, Traits >::discMethod = DiscretizationMethod::staggered
staticconstexpr

export discretization method

◆ upwindSchemeOrder

template<class GV , class Traits >
constexpr int Dumux::StaggeredFVGridGeometry< GV, false, Traits >::upwindSchemeOrder = Traits::upwindSchemeOrder
staticconstexpr

◆ useHigherOrder

template<class GV , class Traits >
constexpr bool Dumux::StaggeredFVGridGeometry< GV, false, Traits >::useHigherOrder = upwindSchemeOrder > 1
staticconstexpr

The documentation for this class was generated from the following file: