Dune Core Modules (unstable)

Dune::AlbertaGridEntity< 0, dim, Grid > Class Template Reference

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

Public Member Functions

 AlbertaGridEntity (const Grid &grid)
 constructor
 
 AlbertaGridEntity (const Grid &grid, const ElementInfo &elementInfo, int subEntity)
 constructor
 
int level () const
 level of this element
 
int boundaryId () const
 index of the boundary which is associated with the entity, 0 for inner entities
 
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. More...
 
template<int codim>
Grid::template Codim< codim >::Entity subEntity (int i) const
 
AlbertaGridLeafIntersectionIterator ileafbegin () const
 
AlbertaGridLeafIntersectionIterator ileafend () const
 Reference to one past the last intersection with neighbor.
 
bool isLeaf () const
 returns true if entity is leaf entity, i.e. has no children
 
Entity father () const
 
bool hasFather () const
 returns true if father entity exists
 
LocalGeometry geometryInFather () const
 Location of this element relative to the father's reference element. More...
 
HierarchicIterator hbegin (int maxlevel) const
 
HierarchicIterator hend (int maxlevel) const
 Returns iterator to one past the last son.
 
bool isNew () const
 Was the entity created during the last adaptation cycle?
 
bool mightVanish () const
 Might the entity vanish during the next adaptation cycle?
 
bool hasBoundaryIntersections () const
 Returns true, if entity has intersections with boundary.
 
PartitionType partitionType () const
 return partition type of this entity
 
bool equals (const This &i) const
 equality of entities
 
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
 
template<int codim>
int twist (int i) const
 obtain twist of a subentity
 

Detailed Description

template<int dim, class Grid>
class Dune::AlbertaGridEntity< 0, 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.

Entities of codimension 0 ("elements") are defined through template specialization. Note that this specialization has an extended interface compared to the general case

Member Function Documentation

◆ father()

template<int dim, class Grid >
Grid::template Codim< 0 >::Entity Dune::AlbertaGridEntity< 0, dim, Grid >::father
inline

Inter-level access to father element on coarser grid. Assumes that meshes are nested.

References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().

◆ geometryInFather()

template<int dim, class Grid >
AlbertaGridEntity< 0, dim, Grid >::LocalGeometry Dune::AlbertaGridEntity< 0, dim, Grid >::geometryInFather
inline

Location of this element relative to the father's reference element.

This information is sufficient to interpolate all dofs in conforming case. Nonconforming may require access to neighbors of father and computations with local coordinates. On the fly case is somewhat inefficient since dofs are visited several times. If we store interpolation matrices, this is tolerable.

◆ hbegin()

template<int dim, class Grid >
AlbertaGridEntity< 0, dim, Grid >::HierarchicIterator Dune::AlbertaGridEntity< 0, dim, Grid >::hbegin ( int  maxlevel) const
inline

Inter-level access to son elements on higher levels<=maxlevel. This is provided for sparsely stored nested unstructured meshes. Returns iterator to first son.

References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().

◆ ileafbegin()

template<int dim, class Grid >
AlbertaGridEntity< 0, dim, Grid >::AlbertaGridLeafIntersectionIterator Dune::AlbertaGridEntity< 0, dim, Grid >::ileafbegin
inline

Intra-level access to intersection with neighboring elements. A neighbor is an entity of codimension 0 which has an entity of codimension 1 in common with this entity. Access to neighbors is provided using iterators. This allows meshes to be nonmatching. Returns iterator referencing the first neighbor.

References DUNE_THROW, and Dune::AlbertaGridEntity< codim, dim, Grid >::getElInfo().

◆ subEntities()

template<int dim, class Grid >
unsigned int Dune::AlbertaGridEntity< 0, 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

References Dune::binomial().

◆ subEntity()

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

obtain a subentity

Template Parameters
codimcodimension of the desired subentity
Parameters
[in]inumber of the subentity (in generic numbering)
Returns
the subentity
Note
: The subentities are numbered 0, ..., subEntities(codim)-1

References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().


The documentation for this class was generated from the following files:
  • dune/grid/albertagrid/entity.hh
  • dune/grid/albertagrid/entity.cc
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Mar 28, 23:30, 2024)