dune-mmesh (1.4)
specialization of the implicit GridFactory for MMesh More...
#include <dune/mmesh/grid/implicitgridfactory.hh>
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< IdType, std::size_t > | InterfaceSegments |
type of the interface segment set | |
Public Member Functions | |
MMeshImplicitGridFactory () | |
void | insertElement (const GeometryType &type, const std::vector< unsigned int > &v) |
insert an element into the macro grid More... | |
template<int d = dimension> | |
std::enable_if_t< d==2, bool > | isElement (const std::vector< unsigned int > &v, Element_handle &fh) const |
Returns if there is a face with the given vertices in the triangulation 2. More... | |
template<int d = dimension> | |
std::enable_if_t< d==3, bool > | isElement (const std::vector< unsigned int > &v, Element_handle &fh) const |
Returns if there is a cell with the given vertices in the triangulation 3. More... | |
void | insertBoundarySegment (const std::vector< unsigned int > &vertices) |
insert boundary segment More... | |
void | insertVertex (const WorldVector &pos) |
Insert a vertex into the macro grid. More... | |
void | insertInterface (const std::vector< unsigned int > &vertices, const std::size_t marker=1) |
insert an interface into the macro grid More... | |
unsigned int | insertionIndex (const typename Codim< 0 >::Entity &entity) const |
return index of inserted vertex within the macro grid More... | |
unsigned int | insertionIndex (const typename Codim< dimension >::Entity &entity) const |
return insertion index of entity More... | |
unsigned int | insertionIndex (const typename Grid::LeafIntersection &intersection) const |
return insertion index of boundary intersection More... | |
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 More... | |
Detailed Description
class Dune::MMeshImplicitGridFactory< Grid >
specialization of the implicit GridFactory for MMesh
The implicit grid factory for MMesh
Constructor & Destructor Documentation
◆ MMeshImplicitGridFactory()
|
inline |
default constructor
Member Function Documentation
◆ createGrid()
|
inline |
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
◆ insertBoundarySegment()
|
inline |
insert boundary segment
- Parameters
-
[in] vertices Vertices
References Dune::MMeshImplicitGridFactory< Grid >::dimension.
◆ insertElement()
|
inline |
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)
- Note
- The implicit grid factory ignores the insertion of specific elements. The CGAL backend constructs the elements by inserting vertices implicitly.
References Dune::MMeshImplicitGridFactory< Grid >::isElement().
◆ 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)
References Dune::MMeshImplicitGridFactory< Grid >::dimension.
◆ insertionIndex() [1/3]
|
inline |
return index of inserted vertex within the macro grid
- Parameters
-
[in] pos position of the vertex (in world coordinates)
◆ insertionIndex() [2/3]
|
inline |
return insertion index of entity
- Parameters
-
[in] entity Entity
◆ 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 triangulation 2.
- Parameters
-
[in] v indices of the element vertices
References Dune::MMeshImplicitGridFactory< Grid >::dimension.
Referenced by Dune::MMeshImplicitGridFactory< Grid >::insertElement().
◆ isElement() [2/2]
|
inline |
Returns if there is a cell with the given vertices in the triangulation 3.
- Parameters
-
[in] v indices of the element vertices
References Dune::MMeshImplicitGridFactory< Grid >::dimension.
The documentation for this class was generated from the following file:
- dune/mmesh/grid/implicitgridfactory.hh
