dune-foamgrid  2.8-git
Public Member Functions | Public Attributes | List of all members
Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype > Class Template Reference

Vertex specialization of FoamGridEntityImp. More...

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

Inheritance diagram for Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >:
Inheritance graph

Public Member Functions

 FoamGridEntityImp (int level, const FieldVector< ctype, dimworld > &pos, unsigned int id)
 
bool isLeaf () const
 
GeometryType type () const
 
bool hasFather () 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...
 
int corners () const
 Number of corners (==1) 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

FieldVector< ctype, dimworld > pos_
 Position vector of this vertex. More...
 
unsigned int nSons_
 The number of refined vertices *‍/. More...
 
std::vector< const FoamGridEntityImp< dimgrid, dimgrid,dimworld, ctype > * > elements_
 Elements the vertex is related to. More...
 
std::array< const FoamGridEntityImp< 0, dimgrid,dimworld, ctype > *, 1 > vertex_
 A vertex array for compatibility reasons with edges. Initialized with the this pointer. More...
 
unsigned int boundarySegmentIndex_
 Boundary index if vertex is on boundary. More...
 
unsigned int boundaryId_
 
FoamGridEntityImp< 0, dimgrid, dimworld, ctype > * father_
 Pointer to father vertex on next coarser grid *‍/. More...
 
std::array< FoamGridEntityImp< 0, dimgrid, dimworld, ctype > *, 1 > sons_
 Son vertex on the next finer grid. More...
 
bool isNew_
 If the vertex was newly inserted (at run-time) More...
 
int growthInsertionIndex_
 If this vertex was created in a growth step this will be the index of insertion So if this is the first vertex added to the growth queue by calling insertVertex the index is 0 The index will be valid until postGrow is called. To all other times this shall be -1. 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 dimgrid, int dimworld, class ctype>
class Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >

Vertex specialization of FoamGridEntityImp.

Constructor & Destructor Documentation

◆ FoamGridEntityImp()

template<int dimgrid, int dimworld, class ctype >
Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::FoamGridEntityImp ( int  level,
const FieldVector< ctype, dimworld > &  pos,
unsigned int  id 
)
inline

Member Function Documentation

◆ boundaryId()

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

This has no function yet in Foamgrid.

◆ boundarySegmentIndex()

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

This has no function yet in Foamgrid.

◆ corner()

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

◆ corners()

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

Number of corners (==1)

◆ hasFather()

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

◆ isLeaf()

template<int dimgrid, int dimworld, class ctype >
bool Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::isLeaf ( ) const
inline

◆ level()

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

◆ partitionType()

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

◆ subLeafIndex()

template<int dimgrid, int dimworld, class ctype >
int Dune::FoamGridEntityImp< 0, dimgrid, 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 dimgrid, int dimworld, class ctype >
int Dune::FoamGridEntityImp< 0, dimgrid, 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 dimgrid, int dimworld, class ctype >
GeometryType Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::type ( ) const
inline

Member Data Documentation

◆ boundaryId_

template<int dimgrid, int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::boundaryId_

◆ boundarySegmentIndex_

template<int dimgrid, int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::boundarySegmentIndex_

Boundary index if vertex is on boundary.

◆ elements_

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

Elements the vertex is related to.

◆ father_

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

Pointer to father vertex on next coarser grid *‍/.

◆ growthInsertionIndex_

template<int dimgrid, int dimworld, class ctype >
int Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::growthInsertionIndex_

If this vertex was created in a growth step this will be the index of insertion So if this is the first vertex added to the growth queue by calling insertVertex the index is 0 The index will be valid until postGrow is called. To all other times this shall be -1.

◆ id_

unsigned int Dune::FoamGridEntityBase::id_
inherited

◆ isNew_

template<int dimgrid, int dimworld, class ctype >
bool Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::isNew_

If the vertex was newly inserted (at run-time)

◆ 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 dimgrid, int dimworld, class ctype >
unsigned int Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::nSons_

The number of refined vertices *‍/.

◆ pos_

template<int dimgrid, int dimworld, class ctype >
FieldVector<ctype, dimworld> Dune::FoamGridEntityImp< 0, dimgrid, dimworld, ctype >::pos_

Position vector of this vertex.

◆ sons_

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

Son vertex on the next finer grid.

◆ vertex_

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

A vertex array for compatibility reasons with edges. Initialized with the this pointer.

◆ 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: