dune-grid
2.1.1
|
#include <dune/grid/geometrygrid/entity.hh>
Attributes | |
static const int | codimension = codim |
codimensioon of the entity | |
static const int | dimension = Traits::dimension |
dimension of the grid | |
static const int | mydimension = dimension - codimension |
dimension of the entity | |
static const int | dimensionworld = Traits::dimensionworld |
dimension of the world | |
static const bool | fake = true |
true, if the entity is faked, i.e., if there is no corresponding host entity | |
Types Required by DUNE | |
typedef Traits::ctype | ctype |
coordinate type of the grid | |
typedef Traits::template Codim < codimension >::Geometry | Geometry |
type of corresponding geometry | |
Host Types | |
typedef HostGrid::template Codim< codimension >::Entity | HostEntity |
type of corresponding host entity | |
typedef HostGrid::template Codim< codimension > ::EntityPointer | HostEntityPointer |
type of corresponding host entity pointer | |
typedef Traits::template Codim < codimension >::EntitySeed | EntitySeed |
type of corresponding entity seed | |
typedef HostGrid::template Codim< 0 >::Entity | HostElement |
type of host elements, i.e., of host entities of codimension 0 | |
Construction, Initialization and Destruction | |
EntityBase (const Grid &grid, const HostElement &hostElement, int subEntity) | |
construct an initialized entity | |
EntityBase (const EntityBase &other) | |
Methods Shared by Entities of All Codimensions | |
GeometryType | type () const |
obtain the name of the corresponding reference element | |
unsigned int | topologyId () const |
int | level () const |
obtain the level of this entity | |
PartitionType | partitionType () const |
obtain the partition type of this entity | |
const Geometry & | geometry () const |
EntitySeed | seed () const |
return EntitySeed of host grid entity | |
Methods Supporting the Grid Implementation | |
const Grid & | grid () const |
const HostEntity & | hostEntity () const |
const HostElement & | hostElement () const |
int | subEntity () const |
template<class HostIndexSet > | |
HostIndexSet::IndexType | index (const HostIndexSet &indexSet) const |
obtain the entity's index from a host IndexSet | |
template<class HostIndexSet > | |
HostIndexSet::IndexType | subIndex (const HostIndexSet &indexSet, int i, unsigned int cd) const |
obtain the index of a subentity from a host IndexSet | |
template<class HostIndexSet > | |
bool | isContained (const HostIndexSet &indexSet) const |
check whether the entity is contained in a host index set | |
template<class HostIdSet > | |
HostIdSet::IdType | id (const HostIdSet &idSet) const |
obtain the entity's id from a host IdSet |
construct an initialized entity
[in] | grid | GeometryGrid this entity belongs to |
[in] | hostElement | any host element containing the corresponding host entity |
[in] | subEntity | number of this entity within the host element |
This specialization implements the case, where the host grid does not provide the entity for this codimension, i.e., fake = true.
typedef Traits::ctype Dune::GeoGrid::EntityBase< codim, Grid, true >::ctype |
coordinate type of the grid
typedef Traits::template Codim< codimension >::EntitySeed Dune::GeoGrid::EntityBase< codim, Grid, true >::EntitySeed |
type of corresponding entity seed
typedef Traits::template Codim< codimension >::Geometry Dune::GeoGrid::EntityBase< codim, Grid, true >::Geometry |
type of corresponding geometry
typedef HostGrid::template Codim< 0 >::Entity Dune::GeoGrid::EntityBase< codim, Grid, true >::HostElement |
type of host elements, i.e., of host entities of codimension 0
typedef HostGrid::template Codim< codimension >::Entity Dune::GeoGrid::EntityBase< codim, Grid, true >::HostEntity |
type of corresponding host entity
typedef HostGrid::template Codim< codimension >::EntityPointer Dune::GeoGrid::EntityBase< codim, Grid, true >::HostEntityPointer |
type of corresponding host entity pointer
Dune::GeoGrid::EntityBase< codim, Grid, true >::EntityBase | ( | const Grid & | grid, |
const HostElement & | hostElement, | ||
int | subEntity | ||
) | [inline] |
construct an initialized entity
[in] | grid | GeometryGrid this entity belongs to |
[in] | hostElement | any host element containing the corresponding host entity |
[in] | subEntity | number of this entity within the host element |
Dune::GeoGrid::EntityBase< codim, Grid, true >::EntityBase | ( | const EntityBase< codim, Grid, true > & | other | ) | [inline] |
const Geometry& Dune::GeoGrid::EntityBase< codim, Grid, true >::geometry | ( | ) | const [inline] |
obtain the geometry of this entity
Each DUNE entity encapsulates a geometry object, representing the map from the reference element to world coordinates. Wrapping the geometry is the main objective of the GeometryGrid.
The GeometryGrid provides geometries of order 1, obtained by interpolation of its corners . There corners are calculated from the corners
of the host geometry through the GeometryGrid's coordinate function
, i.e.,
.
const Grid& Dune::GeoGrid::EntityBase< codim, Grid, true >::grid | ( | ) | const [inline] |
const HostElement& Dune::GeoGrid::EntityBase< codim, Grid, true >::hostElement | ( | ) | const [inline] |
const HostEntity& Dune::GeoGrid::EntityBase< codim, Grid, true >::hostEntity | ( | ) | const [inline] |
HostIdSet::IdType Dune::GeoGrid::EntityBase< codim, Grid, true >::id | ( | const HostIdSet & | idSet | ) | const [inline] |
obtain the entity's id from a host IdSet
HostIndexSet::IndexType Dune::GeoGrid::EntityBase< codim, Grid, true >::index | ( | const HostIndexSet & | indexSet | ) | const [inline] |
obtain the entity's index from a host IndexSet
bool Dune::GeoGrid::EntityBase< codim, Grid, true >::isContained | ( | const HostIndexSet & | indexSet | ) | const [inline] |
check whether the entity is contained in a host index set
int Dune::GeoGrid::EntityBase< codim, Grid, true >::level | ( | ) | const [inline] |
obtain the level of this entity
PartitionType Dune::GeoGrid::EntityBase< codim, Grid, true >::partitionType | ( | ) | const [inline] |
obtain the partition type of this entity
References Dune::BorderEntity, Dune::FrontEntity, Dune::InteriorEntity, Dune::OverlapEntity, and Dune::GenericReferenceElement< ctype, dim >::size().
EntitySeed Dune::GeoGrid::EntityBase< codim, Grid, true >::seed | ( | ) | const [inline] |
int Dune::GeoGrid::EntityBase< codim, Grid, true >::subEntity | ( | ) | const [inline] |
HostIndexSet::IndexType Dune::GeoGrid::EntityBase< codim, Grid, true >::subIndex | ( | const HostIndexSet & | indexSet, |
int | i, | ||
unsigned int | cd | ||
) | const [inline] |
obtain the index of a subentity from a host IndexSet
References Dune::GenericReferenceElement< ctype, dim >::subEntity().
unsigned int Dune::GeoGrid::EntityBase< codim, Grid, true >::topologyId | ( | ) | const [inline] |
GeometryType Dune::GeoGrid::EntityBase< codim, Grid, true >::type | ( | ) | const [inline] |
obtain the name of the corresponding reference element
This type can be used to access the DUNE reference element.
References Dune::GenericReferenceElement< ctype, dim >::type().
const int Dune::GeoGrid::EntityBase< codim, Grid, true >::codimension = codim [static] |
codimensioon of the entity
const int Dune::GeoGrid::EntityBase< codim, Grid, true >::dimension = Traits::dimension [static] |
dimension of the grid
const int Dune::GeoGrid::EntityBase< codim, Grid, true >::dimensionworld = Traits::dimensionworld [static] |
dimension of the world
const bool Dune::GeoGrid::EntityBase< codim, Grid, true >::fake = true [static] |
true, if the entity is faked, i.e., if there is no corresponding host entity
const int Dune::GeoGrid::EntityBase< codim, Grid, true >::mydimension = dimension - codimension [static] |
dimension of the entity