dune-grid-dev-howto
2.2.1
|
Specialization for codim-0-entities.This class embodies the topological parts of elements of the grid. It has an extended interface compared to the general entity class. For example, Entities of codimension 0 allow to visit all neighbors. More...
#include <dune/grid/identitygrid/identitygridentity.hh>
Public Types | |
enum | { CodimInHostGrid = GridImp::HostGridType::dimension - GridImp::dimension } |
typedef GridImp::HostGridType::Traits::template Codim< CodimInHostGrid > ::EntityPointer | HostGridEntityPointer |
typedef GridImp::template Codim< 0 >::Geometry | Geometry |
typedef GridImp::template Codim< 0 >::LocalGeometry | LocalGeometry |
typedef IdentityGridLevelIntersectionIterator < GridImp > | LevelIntersectionIterator |
The Iterator over intersections on this level. | |
typedef IdentityGridLeafIntersectionIterator < GridImp > | LeafIntersectionIterator |
The Iterator over intersections on the leaf level. | |
typedef IdentityGridHierarchicIterator < GridImp > | HierarchicIterator |
Iterator over descendants of the entity. | |
typedef GridImp::template Codim< 0 >::EntitySeed | EntitySeed |
The type of the EntitySeed interface class. |
Public Member Functions | |
template<class HostGridEntityPointer > | |
IdentityGridEntity (const GridImp *identityGrid, const HostGridEntityPointer &hostEntity) | |
Constructor for an entity in a given grid level. | |
IdentityGridEntity (const IdentityGridEntity &original) | |
IdentityGridEntity & | operator= (const IdentityGridEntity &original) |
bool | hasFather () const |
returns true if father entity exists | |
EntitySeed | seed () const |
Create EntitySeed. | |
int | level () const |
Level of this element. | |
PartitionType | partitionType () const |
The partition type for parallel computing. | |
Geometry | geometry () const |
Geometry of this entity. | |
template<int cc> | |
int | count () const |
Return the number of subEntities of codimension cc. | |
template<int cc> | |
GridImp::template Codim< cc > ::EntityPointer | subEntity (int i) const |
Provide access to sub entity i of given codimension. Entities are numbered 0 ... count<cc>()-1. | |
IdentityGridLevelIntersectionIterator < GridImp > | ilevelbegin () const |
First level intersection. | |
IdentityGridLevelIntersectionIterator < GridImp > | ilevelend () const |
Reference to one past the last neighbor. | |
IdentityGridLeafIntersectionIterator < GridImp > | ileafbegin () const |
First leaf intersection. | |
IdentityGridLeafIntersectionIterator < GridImp > | ileafend () const |
Reference to one past the last leaf intersection. | |
bool | isLeaf () const |
returns true if Entity has NO children | |
IdentityGridEntityPointer < 0, GridImp > | father () const |
LocalGeometry | geometryInFather () const |
Location of this element relative to the reference element element of the father. This 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. We assume that on-the-fly implementation of numerical algorithms is only done for simple discretizations. Assumes that meshes are nested. | |
IdentityGridHierarchicIterator < GridImp > | hbegin (int maxLevel) const |
Inter-level access to son elements on higher levels<=maxlevel. This is provided for sparsely stored nested unstructured meshes. Returns iterator to first son. | |
IdentityGridHierarchicIterator < GridImp > | hend (int maxLevel) const |
Returns iterator to one past the last son. | |
bool | wasRefined () const |
bool | mightBeCoarsened () const |
template<class HostGridEntityPointer > | |
void | setToTarget (const HostGridEntityPointer &target) |
Public Attributes | |
const GridImp * | identityGrid_ |
HostGridEntityPointer | hostEntity_ |
Friends | |
struct | HostGridAccess< typename remove_const< GridImp >::type > |
Specialization for codim-0-entities.
This class embodies the topological parts of elements of the grid. It has an extended interface compared to the general entity class. For example, Entities of codimension 0 allow to visit all neighbors.
typedef GridImp::template Codim<0>::EntitySeed Dune::IdentityGridEntity< 0, dim, GridImp >::EntitySeed |
The type of the EntitySeed interface class.
typedef GridImp::template Codim<0>::Geometry Dune::IdentityGridEntity< 0, dim, GridImp >::Geometry |
typedef IdentityGridHierarchicIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::HierarchicIterator |
Iterator over descendants of the entity.
typedef GridImp::HostGridType::Traits::template Codim<CodimInHostGrid>::EntityPointer Dune::IdentityGridEntity< 0, dim, GridImp >::HostGridEntityPointer |
typedef IdentityGridLeafIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::LeafIntersectionIterator |
The Iterator over intersections on the leaf level.
typedef IdentityGridLevelIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::LevelIntersectionIterator |
The Iterator over intersections on this level.
typedef GridImp::template Codim<0>::LocalGeometry Dune::IdentityGridEntity< 0, dim, GridImp >::LocalGeometry |
|
inline |
Constructor for an entity in a given grid level.
|
inline |
|
inline |
Return the number of subEntities of codimension cc.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Geometry of this entity.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Location of this element relative to the reference element element of the father. This 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. We assume that on-the-fly implementation of numerical algorithms is only done for simple discretizations. Assumes that meshes are nested.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
returns true if father entity exists
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
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.
|
inline |
Returns iterator to one past the last son.
|
inline |
First leaf intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Reference to one past the last leaf intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
First level intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Reference to one past the last neighbor.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
returns true if Entity has NO children
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Level of this element.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
|
inline |
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
The partition type for parallel computing.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Create EntitySeed.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
Provide access to sub entity i of given codimension. Entities are numbered 0 ... count<cc>()-1.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
|
inline |
References Dune::IdentityGridEntity< codim, dim, GridImp >::level().
|
friend |
HostGridEntityPointer Dune::IdentityGridEntity< 0, dim, GridImp >::hostEntity_ |
const GridImp* Dune::IdentityGridEntity< 0, dim, GridImp >::identityGrid_ |