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...
#include <dumux/multidomain/facet/gridmanager.hh>
template<typename... Grids>
class Dumux::FacetCouplingEmbeddings< Grids >
- 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...
|
|
|
static constexpr std::size_t | numGrids = sizeof...(Grids) |
| export the number of created grids More...
|
|
static constexpr int | bulkGridId = 0 |
| export the grid id of the bulk grid (descending grid dim -> always zero!) More...
|
|
static constexpr int | bulkDim = Grid<bulkGridId>::dimension |
| state the dimension of the highest-dimensional grid More...
|
|
◆ BulkGridView
template<typename... Grids>
◆ GridIndexType
template<typename... Grids>
◆ GridView
template<typename... Grids>
template<std::size_t id>
◆ adjoinedEntityIndices()
template<typename... Grids>
template<std::size_t id>
◆ adjoinedEntityMap() [1/2]
template<typename... Grids>
◆ adjoinedEntityMap() [2/2]
template<typename... Grids>
◆ embeddedEntityIndices()
template<typename... Grids>
template<std::size_t id>
◆ embeddedEntityMap() [1/2]
template<typename... Grids>
◆ embeddedEntityMap() [2/2]
template<typename... Grids>
◆ gridHierarchyIndices()
template<typename... Grids>
◆ gridView()
template<typename... Grids>
template<std::size_t id>
◆ insertionIndex()
template<typename... Grids>
template<std::size_t id, class Entity >
◆ numVerticesInHierarchy()
template<typename... Grids>
◆ setData()
template<typename... Grids>
template<std::size_t id>
void Dumux::FacetCouplingEmbeddings< Grids >::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 |
|
) |
| |
|
inline |
- Parameters
-
gridPtr | shared pointer to this (id-th) grid |
gridFactoryPtr | shared pointer to this (id-th) grid factory |
embeddedEntityMap | map containing the lower-dimensional entities for this grid's elements |
adjoinedEntityMap | map containing the (d+1)-dimensional elements in which this grid's elements are embedded in |
gridVertexIndices | The hierachy's insertion indices that make up this grid |
numVerticesInHierarchy | Total number of vertices in entire grid hierarchy |
◆ bulkDim
template<typename... Grids>
◆ bulkGridId
template<typename... Grids>
◆ numGrids
template<typename... Grids>
The documentation for this class was generated from the following file: