5#ifndef DUNE_ALBERTA_ENTITY_HH
6#define DUNE_ALBERTA_ENTITY_HH
22 template<
int codim,
class Gr
id,
bool leafIterator >
25 template<
class Gr
id >
28 template<
class Gr
id >
31 template<
class Gr
id >
43 template<
int codim,
int dim,
class Gr
id >
95 GeometryType
type ()
const;
115 for (
int i=n-k+1; i<=n; i++)
117 for (
long i=2; i<=k; i++)
182 template<
int dim,
class Gr
id >
200 template<
int codim >
238 GeometryType
type ()
const;
258 for (
int i=n-k+1; i<=n; i++)
260 for (
long i=2; i<=k; i++)
276 template<
int codim >
291 if(
grid().maxLevel() == 0 )
295 DUNE_THROW( NotImplemented,
"method ilevelbegin not implemented for AlbertaGrid." );
306 bool isLeaf ()
const;
314 return (this->
level()>0);
325 LocalGeometry geometryInFather ()
const;
331 HierarchicIterator hbegin (
int maxlevel)
const;
334 HierarchicIterator hend (
int maxlevel)
const;
340 bool mightVanish ()
const;
344 bool hasBoundaryIntersections ()
const ;
350 bool equals (
const This &i )
const;
385 template<
int codim >
provides a wrapper for ALBERTA's el_info structure
#define ALBERTA
Definition albertaheader.hh:29
PartitionType
Attributes used in the generic overlap model.
Definition gridenums.hh:30
Include standard header files.
Definition agrid.hh:60
[ provides Dune::Grid ]
Definition agrid.hh:109
Definition treeiterator.hh:189
Definition hierarchiciterator.hh:29
Definition albertagrid/intersection.hh:105
Definition albertagrid/intersectioniterator.hh:27
void clearElement()
Definition entity.cc:70
int twist() const
obtain twist
Definition albertagrid/entity.hh:154
ALBERTA EL_INFO * getElInfo() const
needed for the LevelIterator and LeafIterator
Definition entity.cc:62
friend class AlbertaGridTreeIterator
Definition albertagrid/entity.hh:54
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/entity.hh:67
int level() const
level of this element
Definition entity.cc:94
void setElement(const ElementInfo &elementInfo, int subEntity)
Definition entity.cc:78
EntitySeed seed() const
obtain entity seed
Definition albertagrid/entity.hh:98
PartitionType partitionType() const
return partition type of this entity
Definition entity.cc:40
Grid::template Codim< codim >::Geometry Geometry
Definition albertagrid/entity.hh:69
void setEntity(const This &other)
Definition entity.cc:87
const ElementInfo & elementInfo() const
Definition albertagrid/entity.hh:130
AlbertaGridEntity(const Grid &grid)
constructor
Definition entity.cc:24
Geometry geometry() const
geometry of this entity
Definition entity.cc:103
static const int dimension
Definition albertagrid/entity.hh:57
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition albertagrid/entity.hh:108
static const int codimension
Definition albertagrid/entity.hh:58
const const GridImp & grid() const
Definition albertagrid/entity.hh:142
AlbertaGridEntity(const Grid &grid, const ElementInfo &elementInfo, int subEntity)
constructor
Definition entity.cc:16
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition albertagrid/entity.hh:68
static const int mydimension
Definition albertagrid/entity.hh:59
int subEntity() const
Definition albertagrid/entity.hh:148
Alberta::ElementInfo< dimension > ElementInfo
Definition albertagrid/entity.hh:71
GeometryType type() const
type of geometry of this entity
Definition entity.cc:114
bool equals(const This &other) const
equality of entities
Definition entity.cc:48
AlbertaGridEntity()
Definition entity.cc:32
Definition albertagrid/entity.hh:63
Grid::template Codim< cd >::Entity Entity
Definition albertagrid/entity.hh:64
Definition albertagrid/entity.hh:185
Grid::HierarchicIterator HierarchicIterator
Definition albertagrid/entity.hh:213
EntitySeed seed() const
obtain entity seed
Definition albertagrid/entity.hh:241
friend class AlbertaGridTreeIterator
Definition albertagrid/entity.hh:193
Grid::Traits::template Codim< 0 >::GeometryImpl GeometryImpl
Definition albertagrid/entity.hh:211
const ElementInfo & elementInfo() const
Definition albertagrid/entity.hh:355
int twist() const
obtain twist
Definition albertagrid/entity.hh:379
Grid::template Codim< codim >::Entity subEntity(int i) const
Definition entity.cc:209
AlbertaGridEntity(const Grid &grid)
constructor
Definition entity.cc:135
Grid::template Codim< 0 >::Geometry Geometry
Definition albertagrid/entity.hh:209
bool hasFather() const
returns true if father entity exists
Definition albertagrid/entity.hh:312
Grid::template Codim< 0 >::Entity Entity
Definition albertagrid/entity.hh:207
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition albertagrid/entity.hh:373
int twist(int i) const
obtain twist of a subentity
Definition albertagrid/entity.hh:386
int boundaryId() const
index of the boundary which is associated with the entity, 0 for inner entities
Definition entity.cc:149
static const int codimension
Definition albertagrid/entity.hh:197
static const int dimension
Definition albertagrid/entity.hh:196
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition albertagrid/entity.hh:289
AlbertaGridLeafIntersectionIterator ileafend() const
Reference to one past the last intersection with neighbor.
Definition entity.cc:353
static const int mydimension
Definition albertagrid/entity.hh:198
Alberta::ElementInfo< dimension > ElementInfo
Definition albertagrid/entity.hh:218
Grid::template Codim< 0 >::EntitySeed EntitySeed
Definition albertagrid/entity.hh:208
AlbertaGridLevelIntersectionIterator ilevelend() const
Definition albertagrid/entity.hh:300
Grid::template Codim< 0 >::LocalGeometry LocalGeometry
Definition albertagrid/entity.hh:210
const Grid & grid() const
obtain a reference to the grid
Definition albertagrid/entity.hh:367
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition albertagrid/entity.hh:251
AlbertaGridLeafIntersectionIterator ileafbegin() const
Definition entity.cc:328
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition albertagrid/entity.hh:215
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition albertagrid/entity.hh:216
Definition albertagrid/entity.hh:202
Grid::template Codim< codim >::Entity Entity
Definition albertagrid/entity.hh:204
Definition albertagrid/entityseed.hh:18
Wrapper class for entities.
Definition common/entity.hh:66
Default Implementations for EntityImp.
Definition common/entity.hh:542
Grid abstract base class.
Definition common/grid.hh:375
GridFamily::Traits::HierarchicIterator HierarchicIterator
A type that is a model of Dune::HierarchicIterator A type of iterator that allows to examine,...
Definition common/grid.hh:482
static constexpr int dimensionworld
The dimension of the world the grid lives in.
Definition common/grid.hh:390