Dune Core Modules (2.4.1)
#include <dune/grid/albertagrid/entity.hh>
Public Types | |
enum | |
know your own codimension | |
enum | |
Dimension of the grid. | |
enum | |
Know dimension of the entity. | |
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 | |
template<int codim> | |
int | count () const |
unsigned int | subEntities (unsigned int codim) 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 Grid & | grid () 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
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
◆ count()
|
inline |
obtain the number of subentities of a codimension
- Template Parameters
-
codim codimension
- Returns
- the number of subentities of the given codimension
◆ father()
|
inline |
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
References Dune::AlbertaGridEntity< codim, dim, Grid >::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()
|
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()
|
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 commen 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()
|
inline |
Obtain the number of subentities of a given codimension.
That number is ((dim+1) over (dim-codim+1))
- Parameters
-
codim codimension
- Returns
- the number of subentities of the given codimension
References Dune::RefinementImp::Simplex::binomial().
◆ subEntity()
|
inline |
obtain a subentity
- Template Parameters
-
codim codimension of the desired subentity
- Parameters
-
[in] i number of the subentity (in generic numbering)
- Returns
- an EntityPointer to the subentity
- Note
- : The subentities are numbered 0, ..., count< 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