Dune Core Modules (2.9.0)

Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp > Class Template Reference

Default Implementations for EntityImp (Elements [cd=0]) More...

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

Public Types

typedef GridImp::template Codim< 0 >::EntitySeed EntitySeed
 The corresponding entity seed (for storage of entities)
 

Public Member Functions

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.
 
unsigned int subEntities (unsigned int codim) const
 Number of subentities for a given codimension. More...
 
GeometryType type () const
 Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
 
bool isNew () const
 Returns true, if the entity has been created during the last call to adapt()
 
bool mightVanish () const
 Returns true, if entity might disappear during the next call to adapt()
 
bool hasBoundaryIntersections () const
 Returns true, if entity has intersections with boundary, this implementation uses the Level- and LeafIntersectionIterator to check for boundary intersections.
 

Static Public Attributes

constexpr static int codimension = 0
 know your own codimension
 
constexpr static int dimension = dim
 Dimension of the grid.
 
constexpr static int mydimension = dim
 Know dimension of the entity.
 

Detailed Description

template<int dim, class GridImp, template< int, int, class > class EntityImp>
class Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >

Default Implementations for EntityImp (Elements [cd=0])

EntityDefaultImplementation provides default implementations for Entity which uses the implemented interface which has to be done by the user.

<int cd, int dim, class GridImp, template<int,int,class> class EntityImp>

Member Function Documentation

◆ subEntities()

template<int dim, class GridImp , template< int, int, class > class EntityImp>
unsigned int Dune::EntityDefaultImplementation< 0, dim, GridImp, EntityImp >::subEntities ( unsigned int  codim) const
inline

Number of subentities for a given codimension.

Parameters
codimcodimension to obtain number of subentities for
Note
The codimension is specified with respect to the grid dimension.
Unless the geometry type is None, this method is redundant and the same information can be obtained from the corresponding reference element.

References Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::codimension, Dune::Geo::ReferenceElements< ctype_, dim >::general(), and Dune::EntityDefaultImplementation< cd, dim, GridImp, EntityImp >::type().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Apr 19, 22:31, 2024)