dune-grid 2.10
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Dune::AlbertaGridEntity< codim, dim, Grid > Class Template Reference

#include <dune/grid/albertagrid/entity.hh>

Inheritance diagram for Dune::AlbertaGridEntity< codim, dim, Grid >:
Inheritance graph

Classes

struct  Codim
 

Public Types

typedef Grid::template Codim< codim >::Entity Entity
 
typedef Grid::template Codim< codim >::EntitySeed EntitySeed
 
typedef Grid::template Codim< codim >::Geometry Geometry
 
typedef Alberta::ElementInfo< dimensionElementInfo
 

Public Member Functions

 AlbertaGridEntity (const Grid &grid)
 constructor
 
 AlbertaGridEntity ()
 
 AlbertaGridEntity (const Grid &grid, const ElementInfo &elementInfo, int subEntity)
 constructor
 
int level () const
 level of this element
 
PartitionType partitionType () const
 return partition type of this entity
 
Geometry geometry () const
 geometry of this entity
 
GeometryType type () const
 type of geometry of this entity
 
EntitySeed seed () const
 obtain entity seed
 
unsigned int subEntities (unsigned int cd) const
 Obtain the number of subentities of a given codimension.
 
ALBERTA EL_INFOgetElInfo () const
 needed for the LevelIterator and LeafIterator
 
const ElementInfoelementInfo () const
 
bool equals (const This &other) const
 equality of entities
 
void clearElement ()
 
void setElement (const ElementInfo &elementInfo, int subEntity)
 
void setEntity (const This &other)
 
const Gridgrid () const
 obtain a reference to the grid
 
int subEntity () const
 obtain number of the subentity within the element (in ALBERTA numbering)
 
int twist () const
 obtain twist
 

Static Public Attributes

static const int dimension = dim
 
static const int codimension = codim
 
static const int mydimension = dimension - codimension
 

Detailed Description

template<int codim, int dim, class Grid>
class Dune::AlbertaGridEntity< codim, dim, Grid >

A grid is a container of grid entities. An entity is parametrized by the codimension. An entity of codimension c in dimension d is a d-c dimensional object.

Member Typedef Documentation

◆ ElementInfo

template<int codim, int dim, class Grid >
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridEntity< codim, dim, Grid >::ElementInfo

◆ Entity

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::Entity Dune::AlbertaGridEntity< codim, dim, Grid >::Entity

◆ EntitySeed

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::EntitySeed Dune::AlbertaGridEntity< codim, dim, Grid >::EntitySeed

◆ Geometry

template<int codim, int dim, class Grid >
typedef Grid::template Codim<codim>::Geometry Dune::AlbertaGridEntity< codim, dim, Grid >::Geometry

Constructor & Destructor Documentation

◆ AlbertaGridEntity() [1/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity ( const Grid grid)
inlineexplicit

constructor

◆ AlbertaGridEntity() [2/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity ( )
inline

◆ AlbertaGridEntity() [3/3]

template<int codim, int dim, class Grid >
Dune::AlbertaGridEntity< codim, dim, Grid >::AlbertaGridEntity ( const Grid grid,
const ElementInfo elementInfo,
int  subEntity 
)
inline

constructor

Member Function Documentation

◆ clearElement()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::clearElement ( )
inline

◆ elementInfo()

template<int codim, int dim, class Grid >
const ElementInfo & Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo ( ) const
inline

◆ equals()

template<int codim, int dim, class Grid >
bool Dune::AlbertaGridEntity< codim, dim, Grid >::equals ( const This other) const
inline

equality of entities

◆ geometry()

template<int codim, int dim, class Grid >
AlbertaGridEntity< codim, dim, Grid >::Geometry Dune::AlbertaGridEntity< codim, dim, Grid >::geometry ( ) const
inline

geometry of this entity

◆ getElInfo()

template<int codim, int dim, class Grid >
ALBERTA EL_INFO * Dune::AlbertaGridEntity< codim, dim, Grid >::getElInfo ( ) const
inline

needed for the LevelIterator and LeafIterator

◆ grid()

template<int codim, int dim, class Grid >
const Grid & Dune::AlbertaGridEntity< codim, dim, Grid >::grid ( ) const
inline

obtain a reference to the grid

◆ level()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::level ( ) const
inline

level of this element

◆ partitionType()

template<int codim, int dim, class Grid >
PartitionType Dune::AlbertaGridEntity< codim, dim, Grid >::partitionType ( ) const
inline

return partition type of this entity

◆ seed()

template<int codim, int dim, class Grid >
EntitySeed Dune::AlbertaGridEntity< codim, dim, Grid >::seed ( ) const
inline

obtain entity seed

◆ setElement()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::setElement ( const ElementInfo elementInfo,
int  subEntity 
)
inline

◆ setEntity()

template<int codim, int dim, class Grid >
void Dune::AlbertaGridEntity< codim, dim, Grid >::setEntity ( const This other)
inline

◆ subEntities()

template<int codim, int dim, class Grid >
unsigned int Dune::AlbertaGridEntity< codim, dim, Grid >::subEntities ( unsigned int  cd) const
inline

Obtain the number of subentities of a given codimension.

That number is ((mydimension+1) over (dim-cd+1))

Parameters
cdcodimension
Returns
the number of subentities of the given codimension

◆ subEntity()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::subEntity ( ) const
inline

obtain number of the subentity within the element (in ALBERTA numbering)

◆ twist()

template<int codim, int dim, class Grid >
int Dune::AlbertaGridEntity< codim, dim, Grid >::twist ( ) const
inline

obtain twist

◆ type()

template<int codim, int dim, class Grid >
GeometryType Dune::AlbertaGridEntity< codim, dim, Grid >::type ( ) const
inline

type of geometry of this entity

Member Data Documentation

◆ codimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::codimension = codim
static

◆ dimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::dimension = dim
static

◆ mydimension

template<int codim, int dim, class Grid >
const int Dune::AlbertaGridEntity< codim, dim, Grid >::mydimension = dimension - codimension
static

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