Class documentation of Concepts

Loading...
Searching...
No Matches
hp2D::GridInfo< F > Class Template Reference

#include <gridInfo.hh>

Inheritance diagram for hp2D::GridInfo< F >:
concepts::OutputOperator

Public Types

enum  Type { regular = 0 , cIrregular = 1 , sIrregular = 2 }
 
typedef concepts::ElementAndFacette< hp2D::Element< F > > UnderlyingElement
 
typedef concepts::HashMap< concepts::Sequence< UnderlyingElement > > EdgeToElms
 
typedef concepts::HashMap< concepts::Sequence< uint > > CoarseToSuccessor
 

Public Member Functions

 GridInfo (const concepts::SpaceOnCells< F > &spc, const concepts::Set< uint > &edgeAttr)
 
const EdgeToElmsget (Type type) const
 
const CoarseToSuccessorget () const
 
const concepts::Set< uint > & attribute () const
 Returns the setted attributes.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

Detailed Description

template<class F = Real>
class hp2D::GridInfo< F >

Class that represents grid information of a given 2d Fem space.

The class stores mappings from edges to underlying elements of the Fem space.

Class works on spaces with hanging nodes, i.e. k-irregular grids.

If a edge is regular there are at most 2 underlying elements. If a edge is irregular it has only 1 underlying element.

Addition for coarse irregular edges a mapping to keys of succussor irregular edges is stores.

This class e.g. applicates for Tracespaces in hp2D package.

Author
Robert Gruhlke, 2016

Definition at line 42 of file gridInfo.hh.

Member Typedef Documentation

◆ CoarseToSuccessor

template<class F = Real>
typedef concepts::HashMap<concepts::Sequence<uint> > hp2D::GridInfo< F >::CoarseToSuccessor

Definition at line 46 of file gridInfo.hh.

◆ EdgeToElms

template<class F = Real>
typedef concepts::HashMap<concepts::Sequence<UnderlyingElement> > hp2D::GridInfo< F >::EdgeToElms

Definition at line 45 of file gridInfo.hh.

◆ UnderlyingElement

template<class F = Real>
typedef concepts::ElementAndFacette<hp2D::Element<F> > hp2D::GridInfo< F >::UnderlyingElement

Definition at line 44 of file gridInfo.hh.

Member Enumeration Documentation

◆ Type

template<class F = Real>
enum hp2D::GridInfo::Type

Enumeration for type of grid edges regular = a regular edge, edge with two neighbouring cells, boundary edge, edge with only one active adjacent element. cIrregular = coarse irregular edge, that has successor edges that are irregular sIrregular = small irregular edge, that are successors of a coarse irregular edge. These edges have two adjacent elements, where that edge is edge of exactly of the two adjacent elements, i.e. elements have different level (size).

Definition at line 59 of file gridInfo.hh.

Constructor & Destructor Documentation

◆ GridInfo()

template<class F = Real>
hp2D::GridInfo< F >::GridInfo ( const concepts::SpaceOnCells< F > &  spc,
const concepts::Set< uint > &  edgeAttr 
)

Constructor

Parameters
spca Space providing hp2D::Quad Elements
edgeAttrattributes of edges to be considered

Member Function Documentation

◆ get() [1/2]

template<class F = Real>
const CoarseToSuccessor & hp2D::GridInfo< F >::get ( ) const

Returns a map from coarse irregular edges to sequence of keys, that represent successor (small irregular) edges in order.

◆ get() [2/2]

template<class F = Real>
const EdgeToElms & hp2D::GridInfo< F >::get ( Type  type) const

Returns a map from requested edge keys to underlying elements. Here the type of edge is specified by input type.

Parameters
typespecification for regular, coarse/successor irregular edge map

◆ info()

template<class F = Real>
virtual std::ostream & hp2D::GridInfo< F >::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.


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