dune-grid  2.4.1
Public Types | Public Member Functions | List of all members
Dune::ALU2dGridEntity< cd, dim, GridImp > Singleton Reference

#include <dune/grid/alugrid/2d/entity.hh>

Inheritance diagram for Dune::ALU2dGridEntity< cd, dim, GridImp >:
Inheritance graph

Public Types

typedef
GridImp::GridObjectFactoryType 
FactoryType
 
typedef Dune::ALU2dImplTraits
< dimworld, eltype >::template
Codim< cd >::InterfaceType 
ElementType
 
typedef Dune::ALU2dImplTraits
< dimworld, eltype >::template
Codim< 2 >::InterfaceType 
VertexType
 
typedef GridImp::template
Codim< cd >::Entity 
Entity
 type of our interface entity More...
 
typedef GridImp::template
Codim< cd >::Geometry 
Geometry
 type of corresponding interface geometry More...
 
typedef GridImp::template
Codim< cd >::EntitySeed 
EntitySeed
 typedef of my type More...
 
typedef GridImp::template
Codim< 0 >::EntityPointer 
EntityPointer
 tpye of EntityPointer More...
 
enum  
 know your own codimension More...
 
enum  
 Dimension of the grid. More...
 
enum  
 Know dimension of the entity. More...
 

Public Member Functions

int level () const
 level of this element More...
 
 ALU2dGridEntity (const FactoryType &factory, int level)
 Constructor. More...
 
 ALU2dGridEntity (const ALU2dGridEntity &org)
 Copy Constructor. More...
 
Geometry geometry () const
 geometry of this entity More...
 
GeometryType type () const
 return type of geometry More...
 
void removeElement ()
 set item pointer to NULL More...
 
void setElement (const ElementType &element, int face=-1, int level=-1) const
 set element as normal entity More...
 
void setElement (const EntitySeed &seed) const
 
void setElement (const HElementType &el, const VertexType &vx)
 
void setElement (const ALU2dGridEntity &org) const
 
bool equals (const ALU2dGridEntity< cd, dim, GridImp > &org) const
 compare 2 elements More...
 
PartitionType partitionType () const
 
int boundaryId () const
 Id of the boundary which is associated with the entity, returns 0 for inner entities, arbitrary int otherwise. More...
 
EntityPointer ownersFather () const
 
FieldVector< alu2d_ctype, dim > & positionInOwnersFather () const
 my position in local coordinates of the owners father More...
 
const GridImp & grid () const
 return reference to grid More...
 
const FactoryTypefactory () const
 return reference to factory More...
 
ElementTypegetItem () const
 return reference to current item More...
 
EntitySeed seed () const
 return seed of entity More...
 
int getFace () const
 
int getIndex () const
 index is unique within the grid hierachie and per codim More...
 

Detailed Description

template<int cd, int dim, class GridImp>
singleton Dune::ALU2dGridEntity< cd, dim, GridImp >

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.

Here: the general template

Member Typedef Documentation

template<int cd, int dim, class GridImp>
typedef Dune::ALU2dImplTraits< dimworld, eltype >::template Codim<cd>::InterfaceType Dune::ALU2dGridEntity< cd, dim, GridImp >::ElementType
template<int cd, int dim, class GridImp>
typedef GridImp::template Codim<cd>::Entity Dune::ALU2dGridEntity< cd, dim, GridImp >::Entity

type of our interface entity

template<int cd, int dim, class GridImp>
typedef GridImp::template Codim<0>::EntityPointer Dune::ALU2dGridEntity< cd, dim, GridImp >::EntityPointer

tpye of EntityPointer

template<int cd, int dim, class GridImp>
typedef GridImp::template Codim<cd>::EntitySeed Dune::ALU2dGridEntity< cd, dim, GridImp >::EntitySeed

typedef of my type

template<int cd, int dim, class GridImp>
typedef GridImp :: GridObjectFactoryType Dune::ALU2dGridEntity< cd, dim, GridImp >::FactoryType
template<int cd, int dim, class GridImp>
typedef GridImp::template Codim<cd>::Geometry Dune::ALU2dGridEntity< cd, dim, GridImp >::Geometry

type of corresponding interface geometry

template<int cd, int dim, class GridImp>
typedef Dune::ALU2dImplTraits< dimworld, eltype >::template Codim<2>::InterfaceType Dune::ALU2dGridEntity< cd, dim, GridImp >::VertexType

Member Enumeration Documentation

anonymous enum
inherited

know your own codimension

anonymous enum
inherited

Dimension of the grid.

anonymous enum
inherited

Know dimension of the entity.

Constructor & Destructor Documentation

template<int cd, int dim, class GridImp>
Dune::ALU2dGridEntity< cd, dim, GridImp >::ALU2dGridEntity ( const FactoryType factory,
int  level 
)

Constructor.

template<int cd, int dim, class GridImp>
Dune::ALU2dGridEntity< cd, dim, GridImp >::ALU2dGridEntity ( const ALU2dGridEntity< cd, dim, GridImp > &  org)

Copy Constructor.

Member Function Documentation

template<int cd, int dim, class GridImp>
int Dune::ALU2dGridEntity< cd, dim, GridImp >::boundaryId ( ) const

Id of the boundary which is associated with the entity, returns 0 for inner entities, arbitrary int otherwise.

template<int cd, int dim, class GridImp>
bool Dune::ALU2dGridEntity< cd, dim, GridImp >::equals ( const ALU2dGridEntity< cd, dim, GridImp > &  org) const

compare 2 elements

template<int cd, int dim, class GridImp>
const FactoryType& Dune::ALU2dGridEntity< cd, dim, GridImp >::factory ( ) const
inline
template<int cd, int dim, class GridImp>
Geometry Dune::ALU2dGridEntity< cd, dim, GridImp >::geometry ( ) const

geometry of this entity

template<int cd, int dim, class GridImp>
int Dune::ALU2dGridEntity< cd, dim, GridImp >::getFace ( ) const
inline
template<int cd, int dim, class GridImp>
int Dune::ALU2dGridEntity< cd, dim, GridImp >::getIndex ( ) const

index is unique within the grid hierachie and per codim

template<int cd, int dim, class GridImp>
ElementType& Dune::ALU2dGridEntity< cd, dim, GridImp >::getItem ( ) const
inline
template<int cd, int dim, class GridImp>
const GridImp& Dune::ALU2dGridEntity< cd, dim, GridImp >::grid ( ) const
inline

return reference to grid

Referenced by Dune::ALU2dGridEntity< 0, dim, GridImp >::partitionType().

template<int cd, int dim, class GridImp>
int Dune::ALU2dGridEntity< cd, dim, GridImp >::level ( ) const
template<int cd, int dim, class GridImp>
EntityPointer Dune::ALU2dGridEntity< cd, dim, GridImp >::ownersFather ( ) const

Location of this vertex within a mesh entity of codimension 0 on the coarse grid. This can speed up on-the-fly interpolation for linear conforming elements Possibly this is sufficient for all applications we want on-the-fly.

template<int cd, int dim, class GridImp>
PartitionType Dune::ALU2dGridEntity< cd, dim, GridImp >::partitionType ( ) const
inline

return partition type of this entity ( see grid.hh ) dummy implementation return InteriorEntity

References Dune::InteriorEntity.

template<int cd, int dim, class GridImp>
FieldVector<alu2d_ctype, dim>& Dune::ALU2dGridEntity< cd, dim, GridImp >::positionInOwnersFather ( ) const

my position in local coordinates of the owners father

template<int cd, int dim, class GridImp>
void Dune::ALU2dGridEntity< cd, dim, GridImp >::removeElement ( )

set item pointer to NULL

template<int cd, int dim, class GridImp>
EntitySeed Dune::ALU2dGridEntity< cd, dim, GridImp >::seed ( ) const
inline
template<int cd, int dim, class GridImp>
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement ( const ElementType element,
int  face = -1,
int  level = -1 
) const

set element as normal entity

private methods, but public because of datahandle and template arguments of these methods

Referenced by Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement(), and Dune::ALU2dGridEntity< 0, dim, GridImp >::setElement().

template<int cd, int dim, class GridImp>
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement ( const EntitySeed seed) const
template<int cd, int dim, class GridImp>
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement ( const HElementType &  el,
const VertexType vx 
)
template<int cd, int dim, class GridImp>
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement ( const ALU2dGridEntity< cd, dim, GridImp > &  org) const
inline
template<int cd, int dim, class GridImp>
GeometryType Dune::ALU2dGridEntity< cd, dim, GridImp >::type ( ) const

return type of geometry


The documentation for this singleton was generated from the following file: