version 3.10-dev
Dumux::IntersectionMapper< GridView > Class Template Reference

defines an intersection mapper for mapping of global DOFs assigned to faces which also works for adaptive grids.

#include <dumux/common/intersectionmapper.hh>

Public Member Functions

 IntersectionMapper (const GridView &gridview)
 
const ElementMapper & elementMapper () const
 
int index (const Element &element) const
 Map element to array index. More...
 
int subIndex (int elemIdx, int fIdx)
 Map interface fIdx'th interface of element index to array index. More...
 
int subIndex (int elemIdx, int fIdx) const
 Map interface fIdx'th interface of element index to array index. More...
 
int subIndex (const Element &element, int fIdx)
 Map interface fIdx'th interface of element to array index. More...
 
int subIndex (const Element &element, int fIdx) const
 
int maplocal (int elemIdx, int fIdx)
 
int maplocal (int elemIdx, int fIdx) const
 
int maplocal (const Element &element, int fIdx)
 
int maplocal (const Element &element, int fIdx) const
 
unsigned int size () const
 
unsigned int size (int elemIdx) const
 
unsigned int size (const Element &element) const
 
void update (const GridView &gridView)
 
void update (GridView &&gridView)
 

Protected Member Functions

void update_ ()
 

Protected Attributes

GridView gridView_
 
ElementMapper elementMapper_
 
unsigned int size_
 
std::vector< std::unordered_map< int, int > > intersectionMapGlobal_
 
std::vector< std::unordered_map< int, int > > intersectionMapLocal_
 
std::unordered_map< int, int > standardLocalIdxMap_
 

Constructor & Destructor Documentation

◆ IntersectionMapper()

template<class GridView >
Dumux::IntersectionMapper< GridView >::IntersectionMapper ( const GridView &  gridview)
inline

Member Function Documentation

◆ elementMapper()

template<class GridView >
const ElementMapper & Dumux::IntersectionMapper< GridView >::elementMapper ( ) const
inline

◆ index()

template<class GridView >
int Dumux::IntersectionMapper< GridView >::index ( const Element &  element) const
inline
Parameters
elementReference to element which should be mapped.
Returns
An index in the range 0 ... Max number of elements in set - 1.

◆ maplocal() [1/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::maplocal ( const Element &  element,
int  fIdx 
)
inline

◆ maplocal() [2/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::maplocal ( const Element &  element,
int  fIdx 
) const
inline

◆ maplocal() [3/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::maplocal ( int  elemIdx,
int  fIdx 
)
inline

◆ maplocal() [4/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::maplocal ( int  elemIdx,
int  fIdx 
) const
inline

◆ size() [1/3]

template<class GridView >
unsigned int Dumux::IntersectionMapper< GridView >::size ( ) const
inline

◆ size() [2/3]

template<class GridView >
unsigned int Dumux::IntersectionMapper< GridView >::size ( const Element &  element) const
inline

◆ size() [3/3]

template<class GridView >
unsigned int Dumux::IntersectionMapper< GridView >::size ( int  elemIdx) const
inline

◆ subIndex() [1/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::subIndex ( const Element &  element,
int  fIdx 
)
inline
Parameters
elementReference to element.
fIdxIndex of interface to map.
Returns
An index in the range 0 ... Max number of intersections in set - 1.

◆ subIndex() [2/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::subIndex ( const Element &  element,
int  fIdx 
) const
inline

◆ subIndex() [3/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::subIndex ( int  elemIdx,
int  fIdx 
)
inline
Parameters
elemIdxIndex of element.
fIdxIndex of interface to map.
Returns
An index in the range 0 ... Max number of intersections in set - 1.

◆ subIndex() [4/4]

template<class GridView >
int Dumux::IntersectionMapper< GridView >::subIndex ( int  elemIdx,
int  fIdx 
) const
inline
Parameters
elemIdxIndex of element.
fIdxIndex of interface to map.
Returns
An index in the range 0 ... Max number of intersections in set - 1.

◆ update() [1/2]

template<class GridView >
void Dumux::IntersectionMapper< GridView >::update ( const GridView &  gridView)
inline

◆ update() [2/2]

template<class GridView >
void Dumux::IntersectionMapper< GridView >::update ( GridView &&  gridView)
inline

◆ update_()

template<class GridView >
void Dumux::IntersectionMapper< GridView >::update_ ( )
inlineprotected

Member Data Documentation

◆ elementMapper_

template<class GridView >
ElementMapper Dumux::IntersectionMapper< GridView >::elementMapper_
protected

◆ gridView_

template<class GridView >
GridView Dumux::IntersectionMapper< GridView >::gridView_
protected

◆ intersectionMapGlobal_

template<class GridView >
std::vector<std::unordered_map<int, int> > Dumux::IntersectionMapper< GridView >::intersectionMapGlobal_
protected

◆ intersectionMapLocal_

template<class GridView >
std::vector<std::unordered_map<int, int> > Dumux::IntersectionMapper< GridView >::intersectionMapLocal_
protected

◆ size_

template<class GridView >
unsigned int Dumux::IntersectionMapper< GridView >::size_
protected

◆ standardLocalIdxMap_

template<class GridView >
std::unordered_map<int, int> Dumux::IntersectionMapper< GridView >::standardLocalIdxMap_
protected

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