|
dune-mmesh 1.4.1-git
|
specialization of the GridFactory for MMesh InterfaceGrid More...
#include <dune/mmesh/interface/gridfactory.hh>

Classes | |
| struct | Codim |
Public Types | |
| typedef MMeshInterfaceGrid< MMeshImp > | Grid |
| type of interface grid | |
| typedef Grid::ctype | ctype |
| type of (scalar) coordinates | |
| typedef Grid::HostGridType | HostGrid |
| typedef HostGrid::Vertex_handle | VertexHandle |
| typedef MMeshImp | MMesh |
| type of corresponding mmesh | |
| typedef FieldVector< ctype, dimensionworld > | WorldVector |
| type of vector for world coordinates | |
| typedef FieldMatrix< ctype, dimensionworld, dimensionworld > | WorldMatrix |
| type of matrix from world coordinates to world coordinates | |
| typedef Dune::BoundarySegment< dimension, dimensionworld > | BoundarySegment |
| typedef std::unordered_map< std::vector< std::size_t >, std::size_t, HashUIntVector > | BoundarySegments |
| typedef std::map< std::vector< std::size_t >, unsigned int > | InsertionIndexMap |
| typedef std::map< std::size_t, std::size_t > | VertexIdMap |
| typedef Dune::Communication< typename MPIHelper::MPICommunicator > | Communication |
Public Member Functions | |
| GridFactory (const std::shared_ptr< MMesh > mMesh) | |
| GridFactory () | |
| void | insertElement (const GeometryType &type, const std::vector< unsigned int > &vertices) |
| insert an element into the macro grid | |
| virtual void | insertBoundarySegment (const std::vector< unsigned int > &vertices) |
| insert a boundary segment into the macro grid | |
| void | insertBoundarySegment (const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment > &boundarySegment) |
| void | insertVertex (const WorldVector &pos) |
| Insert a vertex into the macro grid. | |
| void | addVertexHandle (const VertexHandle &vh) |
| Add existing vertex handle from the macro grid to the interface grid. | |
| unsigned int | insertionIndex (const typename Codim< 0 >::Entity &entity) const |
| return insertion index of entity | |
| unsigned int | insertionIndex (const typename Codim< dimension >::Entity &entity) const |
| return insertion index of vertex entity | |
| Grid::GridPtrType | createGrid () |
| finalize grid creation and hand over the grid | |
| auto | getGrid () |
| virtual void | insertVertex (const FieldVector< ctype, dimworld > &pos)=0 |
| virtual void | insertElement (const GeometryType &, const std::vector< unsigned int > &, std::function< FieldVector< ctype, dimworld >(FieldVector< ctype, dimension >)>) |
| virtual void | insertBoundarySegment (const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment< dimension, dimworld > > &boundarySegment) |
| virtual unsigned int | insertionIndex (const typename GridType::LeafIntersection &intersection) const |
| virtual bool | wasInserted (const typename GridType::LeafIntersection &intersection) const |
| Communication | comm () const |
Static Public Attributes | |
| static const int | dimension = Grid::dimension |
| dimension of the grid | |
| static const int | dimensionworld = Grid::dimensionworld |
| dimension of the world | |
| static const bool | supportsBoundaryIds = true |
| are boundary ids supported by this factory? | |
| static const bool | supportPeriodicity = false |
| the factory is not able to create periodic meshes | |
Static Protected Attributes | |
| static constexpr int | dimworld |
Detailed Description
class Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >
specialization of the GridFactory for MMesh InterfaceGrid
The grid factory for MMesh InterfaceGrid
Member Typedef Documentation
◆ BoundarySegment
| typedef Dune::BoundarySegment<dimension, dimensionworld> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::BoundarySegment |
◆ BoundarySegments
| typedef std::unordered_map<std::vector<std::size_t>, std::size_t, HashUIntVector> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::BoundarySegments |
◆ ctype
| typedef Grid::ctype Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::ctype |
type of (scalar) coordinates
◆ Grid
| typedef MMeshInterfaceGrid<MMeshImp> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::Grid |
type of interface grid
◆ HostGrid
| typedef Grid::HostGridType Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::HostGrid |
◆ InsertionIndexMap
| typedef std::map<std::vector<std::size_t>, unsigned int> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::InsertionIndexMap |
◆ MMesh
| typedef MMeshImp Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::MMesh |
type of corresponding mmesh
◆ VertexHandle
| typedef HostGrid::Vertex_handle Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::VertexHandle |
◆ VertexIdMap
| typedef std::map<std::size_t, std::size_t> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::VertexIdMap |
◆ WorldMatrix
| typedef FieldMatrix<ctype, dimensionworld, dimensionworld> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::WorldMatrix |
type of matrix from world coordinates to world coordinates
◆ WorldVector
| typedef FieldVector<ctype, dimensionworld> Dune::GridFactory< MMeshInterfaceGrid< MMeshImp > >::WorldVector |
type of vector for world coordinates
Constructor & Destructor Documentation
◆ GridFactory() [1/2]
|
inline |
default constructor
◆ GridFactory() [2/2]
|
inline |
compatibility constructor
Member Function Documentation
◆ addVertexHandle()
|
inline |
Add existing vertex handle from the macro grid to the interface grid.
- Parameters
-
[in] vh vertex_handle of the vertex
- Note
- This method assumes that the vertices are inserted consecutively with respect to their index.
◆ createGrid()
|
inlinevirtual |
finalize grid creation and hand over the grid
This version of createGrid is original to the MMesh grid factroy, allowing to specity a grid name.
- Returns
- a pointer to the newly created grid
Implements Dune::GridFactoryInterface< MMeshInterfaceGrid< MMeshImp > >.
◆ getGrid()
|
inline |
◆ insertBoundarySegment() [1/2]
|
inlinevirtual |
insert a boundary segment into the macro grid
Only influences the ordering of the boundary segments
- Parameters
-
[in] vertices vertex indices of boundary face
Implements Dune::GridFactoryInterface< MMeshInterfaceGrid< MMeshImp > >.
◆ insertBoundarySegment() [2/2]
|
inline |
◆ insertElement()
|
inlinevirtual |
insert an element into the macro grid
- Parameters
-
[in] type GeometryType of the new element [in] v indices of the element vertices (starting with 0)
Implements Dune::GridFactoryInterface< MMeshInterfaceGrid< MMeshImp > >.
◆ insertionIndex() [1/2]
|
inlinevirtual |
return insertion index of entity
- Parameters
-
[in] entity Entity of codim 0
Reimplemented from Dune::GridFactoryInterface< MMeshInterfaceGrid< MMeshImp > >.
◆ insertionIndex() [2/2]
|
inlinevirtual |
return insertion index of vertex entity
- Parameters
-
[in] entity Entity of codim dimension
Reimplemented from Dune::GridFactoryInterface< MMeshInterfaceGrid< MMeshImp > >.
◆ insertVertex()
|
inline |
Insert a vertex into the macro grid.
- Parameters
-
[in] pos position of the vertex (in world coordinates)
- Note
- This method assumes that the vertices are inserted consecutively with respect to their index.
Member Data Documentation
◆ dimension
|
static |
dimension of the grid
◆ dimensionworld
|
static |
dimension of the world
◆ supportPeriodicity
|
static |
the factory is not able to create periodic meshes
◆ supportsBoundaryIds
|
static |
are boundary ids supported by this factory?
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8