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 >
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 >
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 ) );
404 #endif // #if HAVE_ALBERTA 406 #endif // #ifndef DUNE_ALBERTA_ENTITY_HH PartitionType
Attributes used in the generic overlap model.
Definition: gridenums.hh:30
void setEntity(const This &other)
Definition: entity.cc:87
static constexpr int dimensionworld
The dimension of the world the grid lives in.
Definition: common/grid.hh:390
static const int mydimension
Definition: albertagrid/entity.hh:59
Grid::template Codim< 0 >::LocalGeometry LocalGeometry
Definition: albertagrid/entity.hh:210
Grid::template Codim< 0 >::Geometry Geometry
Definition: albertagrid/entity.hh:209
PartitionType partitionType() const
return partition type of this entity
Definition: entity.cc:40
Grid::HierarchicIterator HierarchicIterator
Definition: albertagrid/entity.hh:213
static const int dimension
Definition: albertagrid/entity.hh:57
Grid::Traits::template Codim< 0 >::GeometryImpl GeometryImpl
Definition: albertagrid/entity.hh:211
ALBERTA EL_INFO * getElInfo() const
needed for the LevelIterator and LeafIterator
Definition: entity.cc:62
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition: albertagrid/entity.hh:108
provides a wrapper for ALBERTA's el_info structure
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 const int codimension
Definition: albertagrid/entity.hh:58
Grid abstract base classThis class is the base class for all grid implementations. Although no virtual functions are used we call it abstract since its methods do not contain an implementation but forward to the methods of the derived class via the Barton-Nackman trick.
Definition: common/grid.hh:375
int twist() const
obtain twist
Definition: albertagrid/entity.hh:154
int level() const
level of this element
Definition: entity.cc:94
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:142
const Grid & grid() const
obtain a reference to the grid
Definition: albertagrid/entity.hh:367
concept Geometry
Model of a geometry object.
Definition: concepts/geometry.hh:29
GeometryType type() const
type of geometry of this entity
Definition: entity.cc:114
AlbertaGridLevelIntersectionIterator ilevelbegin() const
Definition: albertagrid/entity.hh:289
AlbertaGridLevelIntersectionIterator ilevelend() const
Definition: albertagrid/entity.hh:300
Definition: albertagrid/entity.hh:26
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:241
#define ALBERTA
Definition: albertaheader.hh:29
Definition: albertagrid/entity.hh:183
Grid::template Codim< 0 >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:208
bool hasFather() const
returns true if father entity exists
Definition: albertagrid/entity.hh:312
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:355
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:218
void setElement(const ElementInfo &elementInfo, int subEntity)
Definition: entity.cc:78
Geometry geometry() const
geometry of this entity
Definition: entity.cc:103
Include standard header files.
Definition: agrid.hh:59
Definition: albertagrid/entity.hh:32
Definition: albertagrid/entity.hh:23
unsigned int subEntities(unsigned int cd) const
Obtain the number of subentities of a given codimension.
Definition: albertagrid/entity.hh:251
Grid::template Codim< codim >::Geometry Geometry
Definition: albertagrid/entity.hh:69
Definition: albertagrid/entityseed.hh:18
Grid::template Codim< codim >::Entity Entity
Definition: albertagrid/entity.hh:204
Definition: albertagrid/entity.hh:62
Grid::template Codim< codim >::EntitySeed EntitySeed
Definition: albertagrid/entity.hh:68
Definition: albertagrid/entity.hh:29
Default Implementations for EntityImp.
Definition: common/entity.hh:541
int twist(int i) const
obtain twist of a subentity
Definition: albertagrid/entity.hh:386
Wrapper class for entities.
Definition: common/entity.hh:65
[ provides Dune::Grid ]
Definition: agrid.hh:106
int twist() const
obtain twist
Definition: albertagrid/entity.hh:379
const ElementInfo & elementInfo() const
Definition: albertagrid/entity.hh:130
Grid::template Codim< cd >::Entity Entity
Definition: albertagrid/entity.hh:64
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
AlbertaGridEntity()
Definition: entity.cc:32
Grid::template Codim< 0 >::Entity Entity
Definition: albertagrid/entity.hh:207
Definition: albertagrid/entity.hh:44
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:148
concept EntitySeed
Model of an entity seed.
Definition: concepts/entity.hh:25
void clearElement()
Definition: entity.cc:70
Dune::AlbertaGridLeafIntersectionIterator< Grid > AlbertaGridLeafIntersectionIterator
Definition: albertagrid/entity.hh:215
Grid::template Codim< codim >::Entity Entity
Definition: albertagrid/entity.hh:67
AlbertaGridLeafIntersectionIterator AlbertaGridLevelIntersectionIterator
Definition: albertagrid/entity.hh:216
EntitySeed seed() const
obtain entity seed
Definition: albertagrid/entity.hh:98
bool equals(const This &other) const
equality of entities
Definition: entity.cc:48
int subEntity() const
obtain number of the subentity within the element (in ALBERTA numbering)
Definition: albertagrid/entity.hh:373
Alberta::ElementInfo< dimension > ElementInfo
Definition: albertagrid/entity.hh:71