- Home
- About DUNE
- Download
- Documentation
- Community
- Development
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. | |
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 () | |
Destructor. | |
IdentityGridEntity & | operator= (const IdentityGridEntity &original) |
bool | hasFather () const |
returns true if father entity exists | |
int | level () const |
Level of this element. | |
PartitionType | partitionType () const |
The partition type for parallel computing. | |
const 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 |
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_ |
MakeableInterfaceObject < Geometry > * | geo_ |
the current geometry | |
MakeableInterfaceObject < LocalGeometry > * | geoInFather_ |
HostGridEntityPointer | hostEntity_ |
Friends | |
class | 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>::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 |
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity | ( | const GridImp * | identityGrid, | |
const HostGridEntityPointer & | hostEntity | |||
) | [inline] |
Constructor for an entity in a given grid level.
Dune::IdentityGridEntity< 0, dim, GridImp >::IdentityGridEntity | ( | const IdentityGridEntity< 0, dim, GridImp > & | original | ) | [inline] |
Dune::IdentityGridEntity< 0, dim, GridImp >::~IdentityGridEntity | ( | ) | [inline] |
Destructor.
int Dune::IdentityGridEntity< 0, dim, GridImp >::count | ( | ) | const [inline] |
Return the number of subEntities of codimension cc.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
IdentityGridEntityPointer<0,GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::father | ( | ) | const [inline] |
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
const Geometry& Dune::IdentityGridEntity< 0, dim, GridImp >::geometry | ( | ) | const [inline] |
Geometry of this entity.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
const LocalGeometry& Dune::IdentityGridEntity< 0, dim, GridImp >::geometryInFather | ( | ) | const [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_.
bool Dune::IdentityGridEntity< 0, dim, GridImp >::hasFather | ( | ) | const [inline] |
returns true if father entity exists
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
IdentityGridHierarchicIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::hbegin | ( | int | maxLevel | ) | const [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.
IdentityGridHierarchicIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::hend | ( | int | maxLevel | ) | const [inline] |
Returns iterator to one past the last son.
IdentityGridLeafIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::ileafbegin | ( | ) | const [inline] |
First leaf intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
IdentityGridLeafIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::ileafend | ( | ) | const [inline] |
Reference to one past the last leaf intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
IdentityGridLevelIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::ilevelbegin | ( | ) | const [inline] |
First level intersection.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
IdentityGridLevelIntersectionIterator<GridImp> Dune::IdentityGridEntity< 0, dim, GridImp >::ilevelend | ( | ) | const [inline] |
Reference to one past the last neighbor.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
bool Dune::IdentityGridEntity< 0, dim, GridImp >::isLeaf | ( | ) | const [inline] |
returns true if Entity has NO children
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
int Dune::IdentityGridEntity< 0, dim, GridImp >::level | ( | ) | const [inline] |
Level of this element.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
bool Dune::IdentityGridEntity< 0, dim, GridImp >::mightBeCoarsened | ( | ) | const [inline] |
IdentityGridEntity& Dune::IdentityGridEntity< 0, dim, GridImp >::operator= | ( | const IdentityGridEntity< 0, dim, GridImp > & | original | ) | [inline] |
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
PartitionType Dune::IdentityGridEntity< 0, dim, GridImp >::partitionType | ( | ) | const [inline] |
The partition type for parallel computing.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
void Dune::IdentityGridEntity< 0, dim, GridImp >::setToTarget | ( | const HostGridEntityPointer & | target | ) | [inline] |
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
GridImp::template Codim<cc>::EntityPointer Dune::IdentityGridEntity< 0, dim, GridImp >::subEntity | ( | int | i | ) | const [inline] |
Provide access to sub entity i of given codimension. Entities are numbered 0 ... count<cc>()-1.
References Dune::IdentityGridEntity< codim, dim, GridImp >::hostEntity_.
bool Dune::IdentityGridEntity< 0, dim, GridImp >::wasRefined | ( | ) | const [inline] |
References Dune::IdentityGridEntity< codim, dim, GridImp >::level().
friend class HostGridAccess< typename remove_const< GridImp >::type > [friend] |
MakeableInterfaceObject<Geometry>* Dune::IdentityGridEntity< 0, dim, GridImp >::geo_ [mutable] |
the current geometry
MakeableInterfaceObject<LocalGeometry>* Dune::IdentityGridEntity< 0, dim, GridImp >::geoInFather_ [mutable] |
HostGridEntityPointer Dune::IdentityGridEntity< 0, dim, GridImp >::hostEntity_ |
const GridImp* Dune::IdentityGridEntity< 0, dim, GridImp >::identityGrid_ |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].