|
| GridFactory () |
| Default constructor. More...
|
|
virtual void | insertVertex (const FieldVector< ctype, dimworld > &pos) |
| Insert a vertex into the coarse grid. More...
|
|
virtual void | insertElement (const GeometryType &type, const std::vector< unsigned int > &vertices) |
| Insert an element into the coarse grid. More...
|
|
virtual void | insertBoundarySegment (const std::vector< unsigned int > &vertices) |
| insert a boundary segment More...
|
|
virtual std::unique_ptr< GridType > | createGrid () |
| Finalize grid creation and hand over the grid. More...
|
|
virtual void | insertBoundarySegment (const std::vector< unsigned int > &vertices)=0 |
| insert a boundary segment More...
|
|
virtual void | insertBoundarySegment (const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment< dimension, dimworld > > &boundarySegment) |
| insert an arbitrarily shaped boundary segment More...
|
|
virtual DUNE_NO_DEPRECATED_BEGIN void | insertElement (const GeometryType &type, const std::vector< unsigned int > &vertices, const std::shared_ptr< VirtualFunction< FieldVector< ctype, dimension >, FieldVector< ctype, dimworld > > > &elementParametrization) |
| Insert a parametrized element into the coarse grid. More...
|
|
virtual DUNE_NO_DEPRECATED_END void | insertElement (const GeometryType &type, const std::vector< unsigned int > &vertices, std::function< FieldVector< ctype, dimworld >(FieldVector< ctype, dimension >)> elementParametrization) |
| Insert a parametrized element into the coarse grid. More...
|
|
virtual unsigned int | insertionIndex (const typename Codim< 0 >::Entity &entity) const |
| obtain an element's insertion index More...
|
|
virtual unsigned int | insertionIndex (const typename Codim< dimension >::Entity &entity) const |
| obtain a vertex' insertion index More...
|
|
virtual unsigned int | insertionIndex (const typename GridType::LeafIntersection &intersection) const |
| obtain a boundary's insertion index More...
|
|
virtual bool | wasInserted (const typename GridType::LeafIntersection &intersection) const |
| determine whether an intersection was inserted More...
|
|
Communication | comm () const |
| Return the Communication used by the grid factory. More...
|
|
template<class GridType>
class Dune::GridFactory< GridType >
Provide a generic factory class for unstructured grids.
This is the unspecialized class, which does nothing. All work is done in the specializations for the different grid types.
See GridFactoryInterface for an example how to use this class.
template<class GridType >
obtain an element's insertion index
Data can be associated to the created macro grid using the insertion index of each entity that has been inserted during the grid creation process.
Between grid construction (createGrid) and the first grid modification, this method allows to obtain this insertion index from the grid factory. This way, data can be stored using the index maps provided by the grid.
- Parameters
-
[in] | entity | entity whose insertion index is requested |
- Returns
- insertion index of the entity
Reimplemented in Dune::GridFactory< AlbertaGrid< dim, dimworld > >, and Dune::GridFactory< UGGrid< dimworld > >.
template<class GridType >
obtain a vertex' insertion index
Data can be associated to the created macro grid using the insertion index of each entity that has been inserted during the grid creation process.
Between grid construction (createGrid) and the first grid modification, this method allows to obtain this insertion index from the grid factory. This way, data can be stored using the index maps provided by the grid.
- Parameters
-
[in] | entity | entity whose insertion index is requested |
- Returns
- insertion index of the entity
Reimplemented in Dune::GridFactory< AlbertaGrid< dim, dimworld > >, and Dune::GridFactory< UGGrid< dimworld > >.
template<class GridType >
virtual unsigned int Dune::GridFactoryInterface< GridType >::insertionIndex |
( |
const typename GridType::LeafIntersection & |
intersection | ) |
const |
|
inlinevirtualinherited |
obtain a boundary's insertion index
Data can be associated to the created macro grid using the insertion index of each entity that has been inserted during the grid creation process.
Between grid construction (createGrid) and the first grid modification, this method allows to obtain this insertion index from the grid factory. This way, data can be stored using the index maps provided by the grid.
- Parameters
-
[in] | intersection | intersection whose insertion index is requested |
- Returns
- insertion index of the intersection
- Note
- The insertion index can only be obtained for boundary intersections that were actually inserted (see also wasInserted).