dune-foamgrid 2.8.0
|
Specialization for codim-0-entities, i.e., elements for dimgrid==2. More...
#include <dune/foamgrid/foamgrid/foamgridentity.hh>
Classes | |
struct | Codim |
Public Types | |
typedef GridImp::template Codim< 0 >::Geometry | Geometry |
typedef GridImp::template Codim< 0 >::LocalGeometry | LocalGeometry |
typedef FoamGridLevelIntersectionIterator< GridImp > | LevelIntersectionIterator |
The Iterator over intersections on this level. More... | |
typedef FoamGridLeafIntersectionIterator< GridImp > | LeafIntersectionIterator |
The Iterator over intersections on the leaf level. More... | |
typedef FoamGridHierarchicIterator< GridImp > | HierarchicIterator |
Iterator over descendants of the entity. More... | |
typedef GridImp::template Codim< 0 >::EntitySeed | EntitySeed |
The type of the EntitySeed interface class. More... | |
typedef GridImp::Traits::template Codim< 0 >::Entity | Entity |
Public Member Functions | |
FoamGridEntity (const FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > *hostEntity) | |
Constructor for an entity in a given grid level. More... | |
FoamGridEntity (const FoamGridEntity &original) | |
Copy constructor. More... | |
FoamGridEntity () | |
Default constructor. More... | |
FoamGridEntity & | operator= (const FoamGridEntity &original) |
int | level () const |
Level of this element. More... | |
PartitionType | partitionType () const |
The partition type for parallel computing. More... | |
Geometry | geometry () const |
Geometry of this entity. More... | |
EntitySeed | seed () const |
Create EntitySeed. More... | |
template<int cc> | |
int | count () const |
Return the number of subEntities of codimension cc. More... | |
unsigned int | count (unsigned int codim) const |
Return the number of subEntities of codimension cc. More... | |
unsigned int | subEntities (unsigned int codim) const |
int | subId (int i, unsigned int codim) const |
Return index of sub entity with codim = cc and local number i. More... | |
template<int codim> | |
std::enable_if< codim==0, typenameCodim< 0 >::Entity >::type | subEntity (int i) const |
Access to codim 0 subentities. More... | |
template<int codim> | |
std::enable_if< codim==1, typenameCodim< 1 >::Entity >::type | subEntity (int i) const |
Access to codim 1 subentities. More... | |
template<int codim> | |
std::enable_if< codim==2, typenameCodim< 2 >::Entity >::type | subEntity (int i) const |
Access to codim 2 subentities. More... | |
FoamGridLevelIntersectionIterator< GridImp > | ilevelbegin () const |
First level intersection. More... | |
FoamGridLevelIntersectionIterator< GridImp > | ilevelend () const |
Reference to one past the last neighbor. More... | |
FoamGridLeafIntersectionIterator< GridImp > | ileafbegin () const |
First leaf intersection. More... | |
FoamGridLeafIntersectionIterator< GridImp > | ileafend () const |
Reference to one past the last leaf intersection. More... | |
bool | isLeaf () const |
returns true if Entity has NO children More... | |
bool | hasFather () const |
Return true if this element has a father element. More... | |
bool | isNew () const |
bool | mightVanish () const |
Entity | 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. More... | |
FoamGridHierarchicIterator< 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. More... | |
FoamGridHierarchicIterator< GridImp > | hend (int maxLevel) const |
Returns iterator to one past the last son. More... | |
void | setToTarget (const FoamGridEntityImp< dimgrid, dimgrid, dimworld, ctype > *target) |
Make this class point to a new FoamGridEntityImp object. More... | |
bool | equals (const Dune::FoamGridEntity< 0, dimgrid, GridImp > &other) const |
equality More... | |
GeometryType | type () const |
return the entity's type More... | |
Public Attributes | |
const FoamGridEntityImp< dimgrid, dimgrid,dimworld, ctype > * | target_ |
pointer to the implementation More... | |
Specialization for codim-0-entities, i.e., elements for dimgrid==2.
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::Traits::template Codim<0>::Entity Dune::FoamGridEntity< 0, 2, GridImp >::Entity |
typedef GridImp::template Codim<0>::EntitySeed Dune::FoamGridEntity< 0, 2, GridImp >::EntitySeed |
The type of the EntitySeed interface class.
typedef GridImp::template Codim<0>::Geometry Dune::FoamGridEntity< 0, 2, GridImp >::Geometry |
typedef FoamGridHierarchicIterator<GridImp> Dune::FoamGridEntity< 0, 2, GridImp >::HierarchicIterator |
Iterator over descendants of the entity.
typedef FoamGridLeafIntersectionIterator<GridImp> Dune::FoamGridEntity< 0, 2, GridImp >::LeafIntersectionIterator |
The Iterator over intersections on the leaf level.
typedef FoamGridLevelIntersectionIterator<GridImp> Dune::FoamGridEntity< 0, 2, GridImp >::LevelIntersectionIterator |
The Iterator over intersections on this level.
typedef GridImp::template Codim<0>::LocalGeometry Dune::FoamGridEntity< 0, 2, GridImp >::LocalGeometry |
|
inlineexplicit |
Constructor for an entity in a given grid level.
|
inline |
Copy constructor.
|
inline |
Default constructor.
|
inline |
Return the number of subEntities of codimension cc.
|
inline |
Return the number of subEntities of codimension cc.
|
inline |
equality
|
inline |
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
|
inline |
Geometry of this entity.
|
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.
|
inline |
Return true if this element has a father element.
|
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.
|
inline |
Reference to one past the last leaf intersection.
|
inline |
First level intersection.
|
inline |
Reference to one past the last neighbor.
|
inline |
returns true if Entity has NO children
|
inline |
|
inline |
Level of this element.
|
inline |
|
inline |
|
inline |
The partition type for parallel computing.
|
inline |
Create EntitySeed.
|
inline |
Make this class point to a new FoamGridEntityImp object.
|
inline |
Return number of subentities with codimension cc.
That number is (dim over (dim-codim)) times 2^codim
|
inline |
Access to codim 0 subentities.
|
inline |
Access to codim 1 subentities.
|
inline |
Access to codim 2 subentities.
|
inline |
Return index of sub entity with codim = cc and local number i.
|
inline |
return the entity's type
const FoamGridEntityImp<dimgrid, dimgrid ,dimworld, ctype>* Dune::FoamGridEntity< 0, 2, GridImp >::target_ |
pointer to the implementation