|
dune-mmesh 1.4.1-git
|
specialization of the explicit GridFactory for MMesh More...
#include <dune/mmesh/grid/explicitgridfactory.hh>

Classes | |
| struct | Codim |
Public Types | |
| typedef Grid::ctype | ctype |
| type of (scalar) coordinates | |
| typedef Grid::HostGridType | HostGrid |
| type of the hostgrid | |
| 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 |
| type of a Dune boundary segment | |
| typedef Grid::IdType | IdType |
| type of an id | |
| typedef std::unordered_map< IdType, std::size_t > | BoundarySegments |
| type of the boundary segment id map | |
| typedef std::unordered_map< std::size_t, std::size_t > | BoundaryIds |
| typedef std::unordered_map< IdType, std::size_t > | InterfaceSegments |
| type of the interface segment set | |
| typedef Dune::Communication< typename MPIHelper::MPICommunicator > | Communication |
Public Member Functions | |
| MMeshExplicitGridFactory () | |
| void | insertElement (const GeometryType &type, const std::vector< unsigned int > &v) |
| insert an element into the macro grid | |
| void | insertElement (const GeometryType &type, const std::vector< unsigned int > &v, const size_t domainMarker) |
| insert an element into the macro grid with a given domain marker | |
| template<int d = dimension> | |
| std::enable_if_t< d==2, bool > | isElement (const std::vector< unsigned int > &v) const |
| Returns if there is a face with the given vertices in the triangulation2. | |
| template<int d = dimension> | |
| std::enable_if_t< d==3, bool > | isElement (const std::vector< unsigned int > &v) const |
| Returns if there is a cell with the given vertices in the triangulation3. | |
| 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 | insertInterfaceBoundarySegment (const std::vector< unsigned int > &vertices) |
| void | insertVertex (const WorldVector &pos) |
| Insert a vertex into the macro grid. | |
| void | insertInterface (const std::vector< unsigned int > &vertices, const std::size_t marker=1) |
| insert an interface into the macro 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 | |
| unsigned int | insertionIndex (const typename Grid::LeafIntersection &intersection) const |
| return insertion index of boundary intersection | |
| const BoundarySegments & | boundarySegments () const |
| returns the boundary segment to index map | |
| const BoundaryIds & | boundaryIds () const |
| returns the boundary segment index to boundary id map | |
| void | addBoundaryId (std::size_t boundarySegmentIndex, std::size_t boundaryId) |
| add a boundary id | |
| std::unique_ptr< Grid > | createGrid () |
| finalize grid creation and hand over the grid | |
| const std::vector< Vertex_handle > & | vertexHandles () const |
| return the vertex handles | |
| 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::MMeshExplicitGridFactory< Grid >
specialization of the explicit GridFactory for MMesh
The explicit grid factory for MMesh
Member Typedef Documentation
◆ BoundaryIds
| typedef std::unordered_map<std::size_t, std::size_t> Dune::MMeshExplicitGridFactory< Grid >::BoundaryIds |
◆ BoundarySegment
| typedef Dune::BoundarySegment<dimension, dimensionworld> Dune::MMeshExplicitGridFactory< Grid >::BoundarySegment |
type of a Dune boundary segment
◆ BoundarySegments
| typedef std::unordered_map<IdType, std::size_t> Dune::MMeshExplicitGridFactory< Grid >::BoundarySegments |
type of the boundary segment id map
◆ ctype
| typedef Grid::ctype Dune::MMeshExplicitGridFactory< Grid >::ctype |
type of (scalar) coordinates
◆ HostGrid
| typedef Grid::HostGridType Dune::MMeshExplicitGridFactory< Grid >::HostGrid |
type of the hostgrid
◆ IdType
| typedef Grid::IdType Dune::MMeshExplicitGridFactory< Grid >::IdType |
type of an id
◆ InterfaceSegments
| typedef std::unordered_map<IdType, std::size_t> Dune::MMeshExplicitGridFactory< Grid >::InterfaceSegments |
type of the interface segment set
◆ WorldMatrix
| typedef FieldMatrix<ctype, dimensionworld, dimensionworld> Dune::MMeshExplicitGridFactory< Grid >::WorldMatrix |
type of matrix from world coordinates to world coordinates
◆ WorldVector
| typedef FieldVector<ctype, dimensionworld> Dune::MMeshExplicitGridFactory< Grid >::WorldVector |
type of vector for world coordinates
Constructor & Destructor Documentation
◆ MMeshExplicitGridFactory()
|
inline |
default constructor
Member Function Documentation
◆ addBoundaryId()
|
inline |
add a boundary id
◆ boundaryIds()
|
inline |
returns the boundary segment index to boundary id map
◆ boundarySegments()
|
inline |
returns the boundary segment to index map
◆ 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< Grid >.
◆ 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< Grid >.
◆ insertBoundarySegment() [2/2]
|
inline |
◆ insertElement() [1/2]
|
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< Grid >.
◆ insertElement() [2/2]
|
inline |
insert an element into the macro grid with a given domain marker
- Parameters
-
[in] type GeometryType of the new element [in] v indices of the element vertices (starting with 0) [in] domainMarker domain marker of element
◆ insertInterface()
|
inline |
insert an interface into the macro grid
- Parameters
-
[in] vertices indices of the interface vertices (starting with 0) [in] marker marker value of the interface segment (default 1)
◆ insertInterfaceBoundarySegment()
|
inline |
◆ insertionIndex() [1/3]
|
inlinevirtual |
return insertion index of entity
- Parameters
-
[in] entity Entity of codim 0
Reimplemented from Dune::GridFactoryInterface< Grid >.
◆ insertionIndex() [2/3]
|
inlinevirtual |
return insertion index of vertex entity
- Parameters
-
[in] entity Entity of codim dimension
Reimplemented from Dune::GridFactoryInterface< Grid >.
◆ insertionIndex() [3/3]
|
inline |
return insertion index of boundary intersection
- Parameters
-
[in] intersection Leaf intersection
◆ 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.
◆ isElement() [1/2]
|
inline |
Returns if there is a face with the given vertices in the triangulation2.
- Parameters
-
[in] v indices of the element vertices
◆ isElement() [2/2]
|
inline |
Returns if there is a cell with the given vertices in the triangulation3.
- Parameters
-
[in] v indices of the element vertices
◆ vertexHandles()
|
inline |
return the vertex handles
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