dune-grid
2.4.1
|
#include <dune/grid/albertagrid/entity.hh>
Classes | |
struct | Codim |
Public Types | |
typedef Grid::template Codim < 0 >::Entity | Entity |
typedef Grid::template Codim < 0 >::EntitySeed | EntitySeed |
typedef Grid::template Codim < 0 >::Geometry | Geometry |
typedef Grid::template Codim < 0 >::LocalGeometry | LocalGeometry |
typedef Grid::Traits::template Codim< 0 >::GeometryImpl | GeometryImpl |
typedef Grid::HierarchicIterator | HierarchicIterator |
typedef Grid::template Codim < 0 >::EntityPointer | EntityPointer |
typedef Dune::AlbertaGridLeafIntersectionIterator < Grid > | AlbertaGridLeafIntersectionIterator |
typedef AlbertaGridLeafIntersectionIterator | AlbertaGridLevelIntersectionIterator |
typedef Alberta::ElementInfo < dimension > | ElementInfo |
enum | |
know your own codimension More... | |
enum | |
Dimension of the grid. More... | |
enum | |
Know dimension of the entity. More... | |
Public Member Functions | |
AlbertaGridEntity (const Grid &grid) | |
constructor More... | |
AlbertaGridEntity () | |
AlbertaGridEntity (const Grid &grid, const ElementInfo &elementInfo, int subEntity) | |
constructor More... | |
int | level () const |
level of this element More... | |
int | boundaryId () const |
index of the boundary which is associated with the entity, 0 for inner entities More... | |
Geometry | geometry () const |
geometry of this entity More... | |
GeometryType | type () const |
type of geometry of this entity More... | |
EntitySeed | seed () const |
obtain entity seed More... | |
template<int codim> | |
int | count () const |
unsigned int | subEntities (unsigned int codim) const |
Obtain the number of subentities of a given codimension. More... | |
template<int codim> | |
Grid::template Codim< codim > ::Entity | subEntity (int i) const |
AlbertaGridLeafIntersectionIterator | ileafbegin () const |
AlbertaGridLeafIntersectionIterator | ileafend () const |
Reference to one past the last intersection with neighbor. More... | |
AlbertaGridLevelIntersectionIterator | ilevelbegin () const |
AlbertaGridLevelIntersectionIterator | ilevelend () const |
bool | isLeaf () const |
returns true if entity is leaf entity, i.e. has no children More... | |
Entity | father () const |
bool | hasFather () const |
returns true if father entity exists More... | |
LocalGeometry | geometryInFather () const |
Location of this element relative to the father's reference element. More... | |
HierarchicIterator | hbegin (int maxlevel) const |
HierarchicIterator | hend (int maxlevel) const |
Returns iterator to one past the last son. More... | |
bool | isNew () const |
Was the entity created during the last adaptation cycle? More... | |
bool | mightVanish () const |
Might the entity vanish during the next adaptation cycle? More... | |
bool | hasBoundaryIntersections () const |
Returns true, if entity has intersections with boundary. More... | |
PartitionType | partitionType () const |
return partition type of this entity More... | |
bool | equals (const This &i) const |
equality of entities More... | |
ALBERTA EL_INFO * | getElInfo () const |
const ElementInfo & | elementInfo () const |
void | clearElement () |
void | setElement (const ElementInfo &elementInfo, int subEntity) |
void | setEntity (const This &other) |
const Grid & | grid () const |
obtain a reference to the grid More... | |
int | subEntity () const |
obtain number of the subentity within the element (in ALBERTA numbering) More... | |
int | twist () const |
obtain twist More... | |
template<int codim> | |
int | twist (int i) const |
obtain twist of a subentity More... | |
Static Public Attributes | |
static const int | dimension = dim |
static const int | codimension = 0 |
static const int | mydimension = dimension - codimension |
A grid is a container of grid entities. An entity is parametrized by the codimension. An entity of codimension c in dimension d is a d-c dimensional object.
Entities of codimension 0 ("elements") are defined through template specialization. Note that this specialization has an extended interface compared to the general case
typedef Dune::AlbertaGridLeafIntersectionIterator< Grid > Dune::AlbertaGridEntity< 0, dim, Grid >::AlbertaGridLeafIntersectionIterator |
typedef AlbertaGridLeafIntersectionIterator Dune::AlbertaGridEntity< 0, dim, Grid >::AlbertaGridLevelIntersectionIterator |
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridEntity< 0, dim, Grid >::ElementInfo |
typedef Grid::template Codim< 0 >::Entity Dune::AlbertaGridEntity< 0, dim, Grid >::Entity |
typedef Grid::template Codim< 0 >::EntityPointer Dune::AlbertaGridEntity< 0, dim, Grid >::EntityPointer |
typedef Grid::template Codim< 0 >::EntitySeed Dune::AlbertaGridEntity< 0, dim, Grid >::EntitySeed |
typedef Grid::template Codim< 0 >::Geometry Dune::AlbertaGridEntity< 0, dim, Grid >::Geometry |
typedef Grid::Traits::template Codim< 0 >::GeometryImpl Dune::AlbertaGridEntity< 0, dim, Grid >::GeometryImpl |
typedef Grid::HierarchicIterator Dune::AlbertaGridEntity< 0, dim, Grid >::HierarchicIterator |
typedef Grid::template Codim< 0 >::LocalGeometry Dune::AlbertaGridEntity< 0, dim, Grid >::LocalGeometry |
|
inherited |
know your own codimension
|
inherited |
Dimension of the grid.
|
inherited |
Know dimension of the entity.
|
inlineexplicit |
constructor
|
inline |
|
inline |
constructor
|
inline |
index of the boundary which is associated with the entity, 0 for inner entities
|
inline |
|
inline |
obtain the number of subentities of a codimension
codim | codimension |
|
inline |
Referenced by equals().
|
inline |
equality of entities
References Dune::Alberta::ElementInfo< dim >::el(), Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo(), and elementInfo().
|
inline |
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
References Dune::Alberta::ElementInfo< dim >::father(), and Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
geometry of this entity
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
Location of this element relative to the father's reference element.
This information is sufficient to interpolate all dofs in conforming case. Nonconforming may require access to neighbors of father and computations with local coordinates. On the fly case is somewhat inefficient since dofs are visited several times. If we store interpolation matrices, this is tolerable.
References Dune::Alberta::ElementInfo< dim >::indexInFather(), and Dune::Alberta::ElementInfo< dim >::type().
|
inline |
References Dune::Alberta::ElementInfo< dim >::elInfo().
|
inline |
obtain a reference to the grid
|
inline |
Returns true, if entity has intersections with boundary.
References Dune::Alberta::ElementInfo< dim >::isBoundary().
|
inline |
returns true if father entity exists
References Dune::AlbertaGridEntity< codim, dim, Grid >::level().
|
inline |
Inter-level access to son elements on higher levels<=maxlevel. This is provided for sparsely stored nested unstructured meshes. Returns iterator to first son.
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
Returns iterator to one past the last son.
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid(), and Dune::AlbertaGridEntity< codim, dim, Grid >::level().
|
inline |
Intra-level access to intersection with neighboring elements. A neighbor is an entity of codimension 0 which has an entity of codimension 1 in commen with this entity. Access to neighbors is provided using iterators. This allows meshes to be nonmatching. Returns iterator referencing the first neighbor.
References Dune::AlbertaGridEntity< codim, dim, Grid >::dimension, and Dune::AlbertaGridEntity< codim, dim, Grid >::getElInfo().
|
inline |
Reference to one past the last intersection with neighbor.
|
inline |
|
inline |
|
inline |
returns true if entity is leaf entity, i.e. has no children
References Dune::Alberta::ElementInfo< dim >::isLeaf().
|
inline |
Was the entity created during the last adaptation cycle?
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
level of this element
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid(), and Dune::Alberta::ElementInfo< dim >::level().
|
inline |
Might the entity vanish during the next adaptation cycle?
References Dune::Alberta::ElementInfo< dim >::mightVanish().
|
inline |
return partition type of this entity
References Dune::InteriorEntity.
|
inline |
obtain entity seed
References Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo().
|
inline |
|
inline |
|
inline |
Obtain the number of subentities of a given codimension.
That number is ((dim+1) over (dim-codim+1))
codim | codimension |
References Dune::AlbertaGridEntity< codim, dim, Grid >::dimension.
|
inline |
obtain a subentity
codim | codimension of the desired subentity |
[in] | i | number of the subentity (in generic numbering) |
References Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
obtain number of the subentity within the element (in ALBERTA numbering)
|
inline |
obtain twist
References Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo(), and Dune::AlbertaGridEntity< codim, dim, Grid >::subEntity().
|
inline |
obtain twist of a subentity
References Dune::AlbertaGridEntity< codim, dim, Grid >::elementInfo(), and Dune::AlbertaGridEntity< codim, dim, Grid >::grid().
|
inline |
type of geometry of this entity
|
static |
|
static |
|
static |