dune-grid
2.4.1
|
#include <dune/grid/alugrid/2d/entity.hh>
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 FactoryType & | factory () const |
return reference to factory More... | |
ElementType & | getItem () 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... | |
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
typedef Dune::ALU2dImplTraits< dimworld, eltype >::template Codim<cd>::InterfaceType Dune::ALU2dGridEntity< cd, dim, GridImp >::ElementType |
typedef GridImp::template Codim<cd>::Entity Dune::ALU2dGridEntity< cd, dim, GridImp >::Entity |
type of our interface entity
typedef GridImp::template Codim<0>::EntityPointer Dune::ALU2dGridEntity< cd, dim, GridImp >::EntityPointer |
tpye of EntityPointer
typedef GridImp::template Codim<cd>::EntitySeed Dune::ALU2dGridEntity< cd, dim, GridImp >::EntitySeed |
typedef of my type
typedef GridImp :: GridObjectFactoryType Dune::ALU2dGridEntity< cd, dim, GridImp >::FactoryType |
typedef GridImp::template Codim<cd>::Geometry Dune::ALU2dGridEntity< cd, dim, GridImp >::Geometry |
type of corresponding interface geometry
typedef Dune::ALU2dImplTraits< dimworld, eltype >::template Codim<2>::InterfaceType Dune::ALU2dGridEntity< cd, dim, GridImp >::VertexType |
|
inherited |
know your own codimension
|
inherited |
Dimension of the grid.
|
inherited |
Know dimension of the entity.
Dune::ALU2dGridEntity< cd, dim, GridImp >::ALU2dGridEntity | ( | const FactoryType & | factory, |
int | level | ||
) |
Constructor.
Dune::ALU2dGridEntity< cd, dim, GridImp >::ALU2dGridEntity | ( | const ALU2dGridEntity< cd, dim, GridImp > & | org | ) |
Copy Constructor.
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.
bool Dune::ALU2dGridEntity< cd, dim, GridImp >::equals | ( | const ALU2dGridEntity< cd, dim, GridImp > & | org | ) | const |
compare 2 elements
|
inline |
return reference to factory
Referenced by Dune::ALU2dGridEntity< 0, dim, GridImp >::hbegin(), and Dune::ALU2dGridEntity< 0, dim, GridImp >::hend().
Geometry Dune::ALU2dGridEntity< cd, dim, GridImp >::geometry | ( | ) | const |
geometry of this entity
|
inline |
Referenced by Dune::ALU2dGridEntity< cd, dim, GridImp >::seed().
int Dune::ALU2dGridEntity< cd, dim, GridImp >::getIndex | ( | ) | const |
index is unique within the grid hierachie and per codim
|
inline |
return reference to current item
Referenced by Dune::ALU2dGridEntity< cd, dim, GridImp >::seed(), and Dune::ALU2dGridEntity< 0, dim, GridImp >::seed().
|
inline |
return reference to grid
Referenced by Dune::ALU2dGridEntity< 0, dim, GridImp >::partitionType().
int Dune::ALU2dGridEntity< cd, dim, GridImp >::level | ( | ) | const |
level of this element
Referenced by Dune::ALU2dGridEntity< 0, dim, GridImp >::hasFather(), Dune::ALU2dGridEntity< 0, dim, GridImp >::ileafbegin(), Dune::ALU2dGridEntity< 0, dim, GridImp >::ileafend(), Dune::ALU2dGridEntity< 0, dim, GridImp >::ilevelbegin(), Dune::ALU2dGridEntity< 0, dim, GridImp >::ilevelend(), and Dune::ALU2dGridEntity< cd, dim, GridImp >::seed().
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.
|
inline |
return partition type of this entity ( see grid.hh ) dummy implementation return InteriorEntity
References Dune::InteriorEntity.
FieldVector<alu2d_ctype, dim>& Dune::ALU2dGridEntity< cd, dim, GridImp >::positionInOwnersFather | ( | ) | const |
my position in local coordinates of the owners father
void Dune::ALU2dGridEntity< cd, dim, GridImp >::removeElement | ( | ) |
set item pointer to NULL
|
inline |
return seed of entity
References Dune::ALU2dGridEntity< cd, dim, GridImp >::getFace(), Dune::ALU2dGridEntity< cd, dim, GridImp >::getItem(), and Dune::ALU2dGridEntity< cd, dim, GridImp >::level().
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().
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement | ( | const EntitySeed & | seed | ) | const |
void Dune::ALU2dGridEntity< cd, dim, GridImp >::setElement | ( | const HElementType & | el, |
const VertexType & | vx | ||
) |
|
inline |
GeometryType Dune::ALU2dGridEntity< cd, dim, GridImp >::type | ( | ) | const |
return type of geometry