template<int dim, class GridImp, template< int, int, class > class EntityImp>
class Dune::Entity< 0, dim, GridImp, EntityImp >
Template specialization of Dune::Entity for Elements (codim==0)
- Template Parameters
-
dim | Dimension of the grid |
GridImp | Type that is a model of Dune::Grid |
EntityImp | Class template that is a model of Dune::Entity |
- See Also
- Dune::Entity (general version) for the full documentation
<int cd, int dim, class GridImp, template<int,int,class> class EntityImp>
template<int dim, class GridImp , template< int, int, class > class EntityImp>
The geometry type of this entity when the geometry is expressed embedded in the father element.
This differs from Geometry in particular when dim != dimworld, but even when dim == dimworld the implementation may choose to use a different type here.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
template<int cc>
int Dune::Entity< 0, dim, GridImp, EntityImp >::count |
( |
| ) |
const |
|
inline |
Number of subentities with codimension cc
.
Strictly speaking this method is redundant, because the same information can be obtained from the corresponding reference element. It is here for efficiency reasons only.
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
Inter-level access to father entity on the next-coarser grid. The given entity resulted directly from a subdivision of its father entity. For the macro elements dereferencing the EntityPointer is undefined.
- Note
- If the partitionType of the Entity is GhostEntity, it is not guaranteed that this method is working or implemented in general. For some grids it might be available, though.
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
obtain geometric realization of the entity
Each entity provides an object of type Dune::Geometry< dimension-codimension, dimensionworld, ... > that represents the map from a reference element to world coordinates.
- Note
- Previously, the geometry was encapsulated in the entity object and a const reference was returned.
-
The returned geometry object is guaranteed to remain valid until the grid is modified (or deleted).
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
Provides information how this element has been subdivided from its father element.
The returned LocalGeometry is a model of Dune::Geometry<dimension,dimension,...>, mapping the reference element of the given entity to the reference element of its father.
This information is sufficient to interpolate all degrees of freedom in the conforming case. Nonconforming may require access to neighbors of the father and calculations with local coordinates. The on-the-fly case is somewhat inefficient since degrees of freedom may be visited several times. If we store interpolation matrices, this is tolerable. We assume that on-the-fly implementation of interpolation is only done for simple discretizations.
- Note
- For ghost entities, this method is not guaranteed to be implemented.
-
Previously, the geometry was encapsulated in the entity object and a const reference was returned.
-
The returned geometry object is guaranteed to remain valid until the grid is modified (or deleted).
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::Entity< 0, dim, GridImp, EntityImp >::hasBoundaryIntersections |
( |
| ) |
const |
|
inline |
template<int dim, class GridImp , template< int, int, class > class EntityImp>
Inter-level access to elements that resulted from (recursive) subdivision of this element.
- Parameters
-
[in] | maxlevel | Iterator does not stop at elements with level greater than maxlevel. |
- Returns
- Iterator to the first son (level is not greater than maxlevel)
- Note
- If the partitionType of the Entity is GhostEntity, it is not guaranteed that this method is working or implemented in general. For some grids it might be available, though.
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
template<int dim, class GridImp , template< int, int, class > class EntityImp>
Access to intersections with neighboring leaf elements. A neighbor is an entity of codimension 0 which has an intersection of codimension 1 in common with this entity. Access to those neighbors is provided using the IntersectionIterator. This method returns an iterator refering to the first neighbor.
- Note
- If the partitionType of the Entity is GhostEntity, this method might give you only one neighbor, which is the interior Entity the GhostEntity is connected to.
- Deprecated:
- This method is deprecated and will be removed after Dune 2.3. Use LeafGridView.ibegin(Entity) instead.
- Deprecated:
- "Use LeafGridView.ibegin(Entity) instead."
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
Intra-level access to intersections with neighboring elements. A neighbor is an entity of codimension 0 which has an intersection of codimension 1 in common with this entity. Access to those neighbors is provided using the IntersectionIterator. This method returns an iterator refering to the first neighbor.
- Note
- If the partitionType of the Entity is GhostEntity, this method might give you only one neighbor, which is the interior Entity the GhostEntity is connected to.
- Deprecated:
- This method is deprecated and will be removed after Dune 2.3. Use LevelGridView.ibegin(Entity) instead.
- Deprecated:
- "Use LevelGridView.ibegin(Entity) instead."
References Dune::Entity< cd, dim, GridImp, EntityImp >::realEntity.
template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::Entity< 0, dim, GridImp, EntityImp >::isNew |
( |
| ) |
const |
|
inline |
template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::Entity< 0, dim, GridImp, EntityImp >::isRegular |
( |
| ) |
const |
|
inline |
template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::Entity< 0, dim, GridImp, EntityImp >::mightVanish |
( |
| ) |
const |
|
inline |
template<int dim, class GridImp , template< int, int, class > class EntityImp>
template<int dim, class GridImp , template< int, int, class > class EntityImp>
template<int codim>
template<int dim, class GridImp , template< int, int, class > class EntityImp>
GeometryType Dune::Entity< 0, dim, GridImp, EntityImp >::type |
( |
| ) |
const |
|
inline |