3#ifndef DUNE_ALBERTA_ENTITY_HH
4#define DUNE_ALBERTA_ENTITY_HH
20 template<
int codim,
class Gr
id,
bool leafIterator >
21 class AlbertaGridTreeIterator;
23 template<
class Gr
id >
24 class AlbertaGridHierarchicIterator;
26 template<
class Gr
id >
27 class AlbertaGridLeafIntersection;
29 template<
class Gr
id >
30 class AlbertaGridLeafIntersectionIterator;
41 template<
int codim,
int dim,
class Gr
id >
93 GeometryType
type ()
const;
113 for (
int i=n-k+1; i<=n; i++)
115 for (
long i=2; i<=k; i++)
131 bool equals (
const This &other )
const;
180 template<
int dim,
class Gr
id >
198 template<
int codim >
206 typedef typename Grid::template Codim< 0 >::EntitySeed
EntitySeed;
207 typedef typename Grid::template Codim< 0 >::Geometry
Geometry;
209 typedef typename Grid::Traits::template Codim< 0 >::GeometryImpl
GeometryImpl;
230 int boundaryId ()
const;
236 GeometryType
type ()
const;
256 for (
int i=n-k+1; i<=n; i++)
258 for (
long i=2; i<=k; i++)
274 template<
int codim >
289 if(
grid().maxLevel() == 0 )
293 DUNE_THROW( NotImplemented,
"method ilevelbegin not implemented for AlbertaGrid." );
304 bool isLeaf ()
const;
312 return (this->
level()>0);
323 LocalGeometry geometryInFather ()
const;
329 HierarchicIterator hbegin (
int maxlevel)
const;
332 HierarchicIterator hend (
int maxlevel)
const;
338 bool mightVanish ()
const;
342 bool hasBoundaryIntersections ()
const ;
348 bool equals (
const This &i )
const;
383 template<
int codim >
386 return elementInfo().template twist< codim >(
grid().generic2alberta( codim, i ) );
#define ALBERTA
Definition: albertaheader.hh:27
provides a wrapper for ALBERTA's el_info structure
PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:28
Include standard header files.
Definition: agrid.hh:58
[ provides Dune::Grid ]
Definition: agrid.hh:107
Definition: treeiterator.hh:187
Definition: hierarchiciterator.hh:27
Definition: albertagrid/intersection.hh:103
Definition: albertagrid/intersectioniterator.hh:25
Definition: albertagrid/entity.hh:44
void clearElement()
Definition: entity.cc:68
int twist() const
obtain twist
Definition: albertagrid/entity.hh:152
ALBERTA EL_INFO * getElInfo() const
needed for the LevelIterator and LeafIterator
Definition: entity.cc:60
Grid::template Codim< codim >::Entity Entity
Definition: albertagrid/entity.hh:65
int level() const
level of this element
Definition: entity.cc:92
void setElement(const ElementInfo &elementInfo, int subEntity)
Definition: entity.cc:76
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:96
PartitionType partitionType() const
return partition type of this entity
Definition: entity.cc:38
Grid::template Codim< codim >::Geometry Geometry
Definition: albertagrid/entity.hh:67
void setEntity(const This &other)
Definition: entity.cc:85
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:128
Geometry geometry() const
geometry of this entity
Definition: entity.cc:101
static const int dimension
Definition: albertagrid/entity.hh:55
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition: albertagrid/entity.hh:106
static const int codimension
Definition: albertagrid/entity.hh:56
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:140
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:66
static const int mydimension
Definition: albertagrid/entity.hh:57
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:146
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:69
GeometryType type() const
type of geometry of this entity
Definition: entity.cc:112
bool equals(const This &other) const
equality of entities
Definition: entity.cc:46
AlbertaGridEntity()
Definition: entity.cc:30
Definition: albertagrid/entity.hh:61
Grid::template Codim< cd >::Entity Entity
Definition: albertagrid/entity.hh:62
Definition: albertagrid/entity.hh:183
Grid::HierarchicIterator HierarchicIterator
Definition: albertagrid/entity.hh:211
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:239
Grid::Traits::template Codim< 0 >::GeometryImpl GeometryImpl
Definition: albertagrid/entity.hh:209
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:353
int twist() const
obtain twist
Definition: albertagrid/entity.hh:377
Grid::template Codim< 0 >::Geometry Geometry
Definition: albertagrid/entity.hh:207
bool hasFather() const
returns true if father entity exists
Definition: albertagrid/entity.hh:310
Grid::template Codim< 0 >::Entity Entity
Definition: albertagrid/entity.hh:205
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:371
int twist(int i) const
obtain twist of a subentity
Definition: albertagrid/entity.hh:384
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition: albertagrid/entity.hh:287
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:216
Grid::template Codim< 0 >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:206
AlbertaGridLevelIntersectionIterator ilevelend() const
Definition: albertagrid/entity.hh:298
Grid::template Codim< 0 >::LocalGeometry LocalGeometry
Definition: albertagrid/entity.hh:208
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:365
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition: albertagrid/entity.hh:249
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition: albertagrid/entity.hh:213
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition: albertagrid/entity.hh:214
Grid::template Codim< codim >::Entity Entity
Definition: albertagrid/entity.hh:202
Definition: albertagrid/entityseed.hh:16
Wrapper class for entities.
Definition: common/entity.hh:64
Default Implementations for EntityImp.
Definition: common/entity.hh:548
Grid abstract base class.
Definition: common/grid.hh:372
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:485
@ dimensionworld
The dimension of the world the grid lives in.
Definition: common/grid.hh:392