|
typedef GridImp::template Codim< 0 >::Geometry | Geometry |
| The geometry type of this entity. More...
|
|
typedef GridImp::template Codim< 0 >::EntitySeed | EntitySeed |
| The corresponding entity seed (for storage of entities) More...
|
|
typedef GridImp::template Codim< 0 >::LocalGeometry | LocalGeometry |
| The geometry type of this entity when the geometry is expressed embedded in the father element. More...
|
|
typedef GridImp::HierarchicIterator | HierarchicIterator |
| The HierarchicIterator type. More...
|
|
static constexpr int | codimension = 0 |
| Know your own codimension. More...
|
|
static constexpr int | dimension = dim |
| Know the grid's dimension. More...
|
|
static constexpr int | mydimension = dim |
| Know dimension of the entity. More...
|
|
|
template<int codim> |
Codim< codim >::Entity | subEntity (int i) const |
| Obtain a subentity. More...
|
|
Entity | father () const |
| Inter-level access to father entity on the next-coarser grid. The given entity resulted directly from a subdivision of its father entity. The behaviour for elements on the macro grid, that is when hasFather() is false, is undefined. More...
|
|
bool | hasFather () const |
| Return true if entity has a father entity which can be accessed using the father() method. More...
|
|
bool | isLeaf () const |
| Returns true if the entity is contained in the leaf grid. More...
|
|
bool | isRegular () const |
| Returns true if element is of regular type in red/green type refinement. In bisection or hanging node refinement this is always true. More...
|
|
LocalGeometry | geometryInFather () const |
| Provides information how this element has been subdivided from its father element. More...
|
|
HierarchicIterator | hbegin (int maxLevel) const |
| Inter-level access to elements that resulted from (recursive) subdivision of this element. More...
|
|
HierarchicIterator | hend (int maxLevel) const |
| Returns iterator to one past the last son element. More...
|
|
bool | isNew () const |
| Returns true, if the entity has been created during the last call to adapt() More...
|
|
bool | mightVanish () const |
| Returns true, if entity might disappear during the next call to adapt(). If the method returns false, the entity is guaranteed to still be present after adaptation. More...
|
|
bool | hasBoundaryIntersections () const |
| Returns true, if entity has intersections with boundary. More...
|
|
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>
typedef GridImp::template Codim<0>::LocalGeometry Dune::Entity< 0, dim, GridImp, EntityImp >::LocalGeometry |
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>
Inter-level access to father entity on the next-coarser grid. The given entity resulted directly from a subdivision of its father entity. The behaviour for elements on the macro grid, that is when hasFather() is false, 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.
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).
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).
template<int dim, class GridImp , template< int, int, class > class EntityImp>
bool Dune::Entity< 0, dim, GridImp, EntityImp >::mightVanish |
( |
| ) |
const |
|
inline |
Returns true, if entity might disappear during the next call to adapt(). If the method returns false, the entity is guaranteed to still be present after adaptation.
template<int cd, int dim, class GridImp , template< int, int, class > class EntityImp>
auto referenceElement |
( |
const Entity< cd, dim, GridImp, EntityImp > & |
entity | ) |
-> decltype(referenceElement<typename GridImp::ctype,GridImp::template Codim<cd>::Geometry::mydimension>(entity.type()))
|
|
related |
Second-level dispatch to select the correct reference element for a grid entity.
This function is the default implementation of the second-level reference element dispatch performed by Entity.
When referenceElement() is called with an Entity, it will forward the call to referenceElement<ctype, mydim>(const GeometryType&)
. This default implementation will do the right thing as long as your geometry is based on a standard Dune ReferenceElement. If it is not and you want to supply your own reference element implementation, provide an override of this function for your specific geometry implementation.