5#ifndef DUNE_ALBERTA_ENTITY_HH
6#define DUNE_ALBERTA_ENTITY_HH
22 template<
int codim,
class Gr
id,
bool leafIterator >
23 class AlbertaGridTreeIterator;
25 template<
class Gr
id >
26 class AlbertaGridHierarchicIterator;
28 template<
class Gr
id >
29 class AlbertaGridLeafIntersection;
31 template<
class Gr
id >
32 class AlbertaGridLeafIntersectionIterator;
43 template<
int codim,
int dim,
class Gr
id >
115 for (
int i=n-k+1; i<=n; i++)
117 for (
long i=2; i<=k; i++)
133 bool equals (
const This &other )
const;
182 template<
int dim,
class Gr
id >
200 template<
int codim >
208 typedef typename Grid::template Codim< 0 >::EntitySeed
EntitySeed;
209 typedef typename Grid::template Codim< 0 >::Geometry
Geometry;
211 typedef typename Grid::Traits::template Codim< 0 >::GeometryImpl
GeometryImpl;
232 int boundaryId ()
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 >
388 return elementInfo().template twist< codim >(
grid().generic2alberta( codim, i ) );
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
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
[ 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
Definition: albertagrid/entity.hh:46
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
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
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 Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:142
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:68
static const int mydimension
Definition: albertagrid/entity.hh:59
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
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
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< 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
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition: albertagrid/entity.hh:289
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
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition: albertagrid/entity.hh:215
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition: albertagrid/entity.hh:216
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