dune-grid
2.3.1-rc1
|
#include <dune/grid/albertagrid/gridfamily.hh>
Classes | |
class | InitEntityNumber |
Public Types | |
typedef AlbertaGrid< dim, dimworld > | Grid |
typedef AlbertaGridFamily< dim, dimworld > | GridFamily |
typedef Base::IndexType | IndexType |
typedef Alberta::ElementInfo < dimension > | ElementInfo |
typedef Alberta::HierarchyDofNumbering < dimension > | DofNumbering |
typedef Alberta::IndexStack | IndexStack |
Public Member Functions | |
template<class Entity > | |
bool | contains (const Entity &) const |
return true if entity is contained in set More... | |
template<int cc> | |
IndexType | index (const typename Traits::template Codim< cc >::Entity &entity) const |
return hierarchic index of given entity More... | |
template<int cc> | |
IndexType | subIndex (const typename Traits::template Codim< cc >::Entity &entity, int i, unsigned int codim) const |
return subIndex of given enitiy's sub entity More... | |
IndexType | size (const GeometryType &type) const |
return size of set for given GeometryType More... | |
IndexType | size (int codim) const |
return size of set More... | |
const std::vector< GeometryType > & | geomTypes (int codim) const |
return geometry types this set has indices for More... | |
IndexType | subIndex (const ElementInfo &elementInfo, int i, unsigned int codim) const |
IndexType | subIndex (const Alberta::Element *element, int i, unsigned int codim) const |
obtain hierarchic subindex More... | |
void | preAdapt () |
void | postAdapt () |
void | create () |
void | read (const std::string &filename) |
bool | write (const std::string &filename) const |
void | release () |
Index access from entity | |
IndexType | index (const typename remove_const< AlbertaGridFamily< dim, dimworld > >::type::Traits::template Codim< cc >::Entity &e) const |
Map entity to index. The result of calling this method with an entity that is not in the index set is undefined. More... | |
IndexType | index (const EntityType &e) const |
Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined. More... | |
IndexType | subIndex (const Entity &e, int i, unsigned int codim) const |
Map a subentity to an index. More... | |
Access to entity set | |
IndexType | size (GeometryType type) const |
Return total number of entities of given geometry type in entity set ![]() | |
bool | contains (const EntityType &e) const |
Return true if the given entity is contained in ![]() | |
Static Public Attributes | |
static const int | dimension = GridFamily::dimension |
Friends | |
class | AlbertaGrid< dim, dimworld > |
typedef Alberta::HierarchyDofNumbering< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::DofNumbering |
typedef Alberta::ElementInfo< dimension > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::ElementInfo |
typedef AlbertaGrid< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::Grid |
typedef AlbertaGridFamily< dim, dimworld > Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::GridFamily |
typedef Alberta::IndexStack Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexStack |
typedef Base::IndexType Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::IndexType |
|
inline |
return true if entity is contained in set
|
inlineinherited |
Return true if the given entity is contained in .
References Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp >::contains().
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::create | ( | ) |
|
inline |
return geometry types this set has indices for
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension.
|
inline |
return hierarchic index of given entity
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
Referenced by Dune::AlbertaGridIdSet< dim, dimworld >::id().
|
inlineinherited |
Map entity to index. The result of calling this method with an entity that is not in the index set is undefined.
e | Reference to codim cc entity, where cc is the template parameter of the function. |
|
inlineinherited |
Map entity to index. Easier to use than the above because codimension template parameter need not be supplied explicitly. The result of calling this method with an entity that is not in the index set is undefined.
e | Reference to codim cc entity. Since entity knows its codimension, automatic extraction is possible. |
|
inline |
|
inline |
void Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::read | ( | const std::string & | filename | ) |
|
inline |
|
inline |
return size of set for given GeometryType
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension.
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
|
inline |
return size of set
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::dimension, and Dune::IndexStack< T, length >::size().
|
inlineinherited |
Return total number of entities of given geometry type in entity set .
[in] | type | A valid geometry type. |
References Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp >::size().
|
inline |
return subIndex of given enitiy's sub entity
References Dune::GridDefaultImplementation< dim, dimworld, Alberta::Real, AlbertaGridFamily< dim, dimworld > >::getRealImplementation(), and Dune::simplex.
Referenced by Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::index(), Dune::AlbertaGridIdSet< dim, dimworld >::subId(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
|
inline |
|
inline |
obtain hierarchic subindex
[in] | element | pointer to ALBERTA element |
[in] | i | number of the subelement (in ALBERTA numbering) |
[in] | codim | codimension |
References Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::size(), and Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::subIndex().
|
inlineinherited |
Map a subentity to an index.
The result of calling this method with an entity that is not in the index set is undefined.
Entity | type of entity (must be GridImp::Codim< cc >::Entity for some cc) |
[in] | e | reference to entity |
[in] | i | number subentity of e within the codimension |
[in] | codim | codimension of the subentity we're interested in |
References Dune::Entity< cd, dim, GridImp, EntityImp >::codimension.
bool Dune::AlbertaGridHierarchicIndexSet< dim, dimworld >::write | ( | const std::string & | filename | ) | const |
|
friend |
|
static |