dune-foamgrid  2.7-git
Public Types | Public Member Functions | Public Attributes | List of all members
Dune::FoamGridEntityImp< 1, 2, dimworld, ctype > Class Template Reference

Edge specialization of FoamGridEntityImp. Edges only exist for dimgrid == 2. More...

#include <dune/foamgrid/foamgrid/foamgridedge.hh>

Inheritance diagram for Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >:
Inheritance graph

Public Types

enum  { dimgrid = 2 }
 Dimension of the grid is always 2 if edges exist. More...
 

Public Member Functions

 FoamGridEntityImp (const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v0, const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v1, int level, unsigned int id)
 
 FoamGridEntityImp (const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v0, const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *v1, int level, unsigned int id, FoamGridEntityImp *father)
 
bool isLeaf () const
 
unsigned int boundarySegmentIndex () const
 This has no function yet in Foamgrid. More...
 
unsigned int boundaryId () const
 This has no function yet in Foamgrid. More...
 
GeometryType type () const
 
bool hasFather () const
 
int corners () const
 Number of corners (==2) More...
 
FieldVector< ctype, dimworld > corner (int i) const
 
PartitionType partitionType () const
 
int subLevelIndex (int i, unsigned int codim) const
 Return level index of sub entity with codim = cc and local number i. More...
 
int subLeafIndex (int i, unsigned int codim) const
 Return leaf index of sub entity with codim = cc and local number i. More...
 
int level () const
 

Public Attributes

std::vector< const FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > * > elements_
 
std::array< const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *, 2 > vertex_
 
unsigned int boundarySegmentIndex_
 The boundary id. Only used if this edge is a boundary edge. More...
 
unsigned int boundaryId_
 
std::array< FoamGridEntityImp< 1, dimgrid, dimworld, ctype > *, 2 > sons_
 links to refinements of this edge More...
 
unsigned int nSons_
 The number of refined edges (0 or 2). More...
 
FoamGridEntityImp< 1, dimgrid, dimworld, ctype > * father_
 Pointer to father edge. More...
 
int level_
 level More...
 
unsigned int levelIndex_
 entity number More...
 
unsigned int leafIndex_
 
unsigned int id_
 
bool willVanish_
 Whether this entity will vanish due to coarsening. More...
 

Detailed Description

template<int dimworld, class ctype>
class Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >

Edge specialization of FoamGridEntityImp. Edges only exist for dimgrid == 2.

Member Enumeration Documentation

◆ anonymous enum

template<int dimworld, class ctype >
anonymous enum

Dimension of the grid is always 2 if edges exist.

Enumerator
dimgrid 

Constructor & Destructor Documentation

◆ FoamGridEntityImp() [1/2]

template<int dimworld, class ctype >
Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::FoamGridEntityImp ( const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *  v0,
const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *  v1,
int  level,
unsigned int  id 
)
inline

◆ FoamGridEntityImp() [2/2]

template<int dimworld, class ctype >
Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::FoamGridEntityImp ( const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *  v0,
const FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *  v1,
int  level,
unsigned int  id,
FoamGridEntityImp< 1, 2, dimworld, ctype > *  father 
)
inline

Member Function Documentation

◆ boundaryId()

template<int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::boundaryId ( ) const
inline

This has no function yet in Foamgrid.

◆ boundarySegmentIndex()

template<int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::boundarySegmentIndex ( ) const
inline

This has no function yet in Foamgrid.

◆ corner()

template<int dimworld, class ctype >
FieldVector<ctype, dimworld> Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::corner ( int  i) const
inline

◆ corners()

template<int dimworld, class ctype >
int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::corners ( ) const
inline

Number of corners (==2)

◆ hasFather()

template<int dimworld, class ctype >
bool Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::hasFather ( ) const
inline

◆ isLeaf()

template<int dimworld, class ctype >
bool Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::isLeaf ( ) const
inline
Todo:
Implement this method!

◆ level()

int Dune::FoamGridEntityBase::level ( ) const
inlineinherited

◆ partitionType()

template<int dimworld, class ctype >
PartitionType Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::partitionType ( ) const
inline

◆ subLeafIndex()

template<int dimworld, class ctype >
int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::subLeafIndex ( int  i,
unsigned int  codim 
) const
inline

Return leaf index of sub entity with codim = cc and local number i.

◆ subLevelIndex()

template<int dimworld, class ctype >
int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::subLevelIndex ( int  i,
unsigned int  codim 
) const
inline

Return level index of sub entity with codim = cc and local number i.

◆ type()

template<int dimworld, class ctype >
GeometryType Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::type ( ) const
inline

Member Data Documentation

◆ boundaryId_

template<int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::boundaryId_

◆ boundarySegmentIndex_

template<int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::boundarySegmentIndex_

The boundary id. Only used if this edge is a boundary edge.

◆ elements_

template<int dimworld, class ctype >
std::vector<const FoamGridEntityImp<dimgrid, dimgrid, dimworld, ctype>*> Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::elements_

◆ father_

template<int dimworld, class ctype >
FoamGridEntityImp<1, dimgrid, dimworld, ctype>* Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::father_

Pointer to father edge.

◆ id_

unsigned int Dune::FoamGridEntityBase::id_
inherited

◆ leafIndex_

unsigned int Dune::FoamGridEntityBase::leafIndex_
inherited

◆ level_

int Dune::FoamGridEntityBase::level_
inherited

level

◆ levelIndex_

unsigned int Dune::FoamGridEntityBase::levelIndex_
inherited

entity number

◆ nSons_

template<int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::nSons_

The number of refined edges (0 or 2).

◆ sons_

template<int dimworld, class ctype >
std::array<FoamGridEntityImp<1, dimgrid, dimworld, ctype>*,2> Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::sons_

links to refinements of this edge

◆ vertex_

template<int dimworld, class ctype >
std::array<const FoamGridEntityImp<0, dimgrid, dimworld, ctype>*, 2> Dune::FoamGridEntityImp< 1, 2, dimworld, ctype >::vertex_

◆ willVanish_

bool Dune::FoamGridEntityBase::willVanish_
inherited

Whether this entity will vanish due to coarsening.


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