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

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

#include <dumux/common/intersectionmapper.hh>

Description

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

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

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 ()
 

Protected Attributes

const 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

Map element to array index.

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

Map interface fIdx'th interface of element to array index.

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

Map interface fIdx'th interface of element index to array index.

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

Map interface fIdx'th interface of element index to array index.

Parameters
elemIdxIndex of element.
fIdxIndex of interface to map.
Returns
An index in the range 0 ... Max number of intersections in set - 1.

◆ update()

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

Member Data Documentation

◆ elementMapper_

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

◆ gridView_

template<class GridView >
const 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: