Contains the embeddings between grids with codimension one among the grid hierarchy. All these embedments are given in insertion indices as they are read directly from the grid. Therefore, this class furthermore allows access to the insertion indices of entities. Additionally, it gives access to the grid views of the different grids on the hierarchy.
More...
template<typename... Grids>
class Dumux::FacetCouplingEmbeddings< Grids >
Contains the embeddings between grids with codimension one among the grid hierarchy. All these embedments are given in insertion indices as they are read directly from the grid. Therefore, this class furthermore allows access to the insertion indices of entities. Additionally, it gives access to the grid views of the different grids on the hierarchy.
- Template Parameters
-
Grids | the types of the grid hierarchy |
- Note
- Grids must be ordered in descending grid dimension
|
template<std::size_t id> |
const GridView< id > & | gridView () const |
| return reference to the i-th grid view More...
|
|
template<std::size_t id, class Entity > |
GridIndexType | insertionIndex (const Entity &entity) const |
| return the insertion index of an entity of the i-th grid More...
|
|
template<std::size_t id> |
std::unordered_map< GridIndexType, std::vector< GridIndexType > >::mapped_type | embeddedEntityIndices (const typename Grid< id >::template Codim< 0 >::Entity &element) const |
| Returns the insertion indices of the entities embedded in given element. More...
|
|
template<std::size_t id> |
std::unordered_map< GridIndexType, std::vector< GridIndexType > >::mapped_type | adjoinedEntityIndices (const typename Grid< id >::template Codim< 0 >::Entity &element) const |
| Returns the insertion indices of the entities in which the element is embedded. More...
|
|
const std::unordered_map< GridIndexType, std::vector< GridIndexType > > & | embeddedEntityMap (std::size_t id) const |
| Returns const reference to maps of the embedded entities. More...
|
|
std::unordered_map< GridIndexType, std::vector< GridIndexType > > & | embeddedEntityMap (std::size_t id) |
| Returns non-const reference to maps of the embedded entities. More...
|
|
const std::unordered_map< GridIndexType, std::vector< GridIndexType > > & | adjoinedEntityMap (std::size_t id) const |
| Returns const reference to the maps of the adjoined entities of dimension d+1. More...
|
|
std::unordered_map< GridIndexType, std::vector< GridIndexType > > & | adjoinedEntityMap (std::size_t id) |
| Returns non-const reference to the maps of the adjoined entities of dimension d+1. More...
|
|
const std::vector< GridIndexType > & | gridHierarchyIndices (std::size_t id) const |
| Returns the hierachy's insertion indices that make up the grid for the given id. More...
|
|
std::size_t | numVerticesInHierarchy () const |
| Returns the number of vertices contained in the entire grid hierarch. More...
|
|
template<std::size_t id> |
void | setData (std::shared_ptr< Grid< id > > gridPtr, std::shared_ptr< GridFactory< id > > gridFactoryPtr, EmbedmentMap &&embeddedEntityMap, EmbedmentMap &&adjoinedEntityMap, std::vector< GridIndexType > &&gridVertexIndices, std::size_t numVerticesInHierarchy) |
| Sets the required data for a specific grid on the hierarchy. More...
|
|