dune-mmesh (1.4)
implicitgridfactory.hh
180 interfaceBoundarySegments_.insert( std::make_pair( sorted_vertices, countInterfaceBoundarySegments++ ) );
210 void insertInterface ( const std::vector< unsigned int > &vertices, const std::size_t marker = 1 )
specialization of the implicit GridFactory for MMesh
Definition: implicitgridfactory.hh:38
static const bool supportsBoundaryIds
are boundary ids supported by this factory?
Definition: implicitgridfactory.hh:83
Grid::IdType IdType
type of an id
Definition: implicitgridfactory.hh:60
std::unique_ptr< Grid > createGrid()
finalize grid creation and hand over the grid
Definition: implicitgridfactory.hh:273
void insertVertex(const WorldVector &pos)
Insert a vertex into the macro grid.
Definition: implicitgridfactory.hh:189
void insertInterface(const std::vector< unsigned int > &vertices, const std::size_t marker=1)
insert an interface into the macro grid
Definition: implicitgridfactory.hh:210
void insertElement(const GeometryType &type, const std::vector< unsigned int > &v)
insert an element into the macro grid
Definition: implicitgridfactory.hh:99
MMeshImplicitGridFactory()
Definition: implicitgridfactory.hh:88
std::unordered_map< IdType, std::size_t > BoundarySegments
type of the boundary segment id map
Definition: implicitgridfactory.hh:63
unsigned int insertionIndex(const typename Grid::LeafIntersection &intersection) const
return insertion index of boundary intersection
Definition: implicitgridfactory.hh:243
const BoundaryIds & boundaryIds() const
returns the boundary segment index to boundary id map
Definition: implicitgridfactory.hh:255
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.
Definition: implicitgridfactory.hh:124
unsigned int insertionIndex(const typename Codim< dimension >::Entity &entity) const
return insertion index of entity
Definition: implicitgridfactory.hh:234
static const int dimension
dimension of the grid
Definition: implicitgridfactory.hh:48
std::unordered_map< IdType, std::size_t > InterfaceSegments
type of the interface segment set
Definition: implicitgridfactory.hh:67
void insertBoundarySegment(const std::vector< unsigned int > &vertices)
insert boundary segment
Definition: implicitgridfactory.hh:147
const BoundarySegments & boundarySegments() const
returns the boundary segment to index map
Definition: implicitgridfactory.hh:249
Grid::ctype ctype
type of (scalar) coordinates
Definition: implicitgridfactory.hh:43
FieldMatrix< ctype, dimensionworld, dimensionworld > WorldMatrix
type of matrix from world coordinates to world coordinates
Definition: implicitgridfactory.hh:55
unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
return index of inserted vertex within the macro grid
Definition: implicitgridfactory.hh:225
Grid::HostGridType HostGrid
type of the hostgrid
Definition: implicitgridfactory.hh:45
static const bool supportPeriodicity
the factory is not able to create periodic meshes
Definition: implicitgridfactory.hh:85
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.
Definition: implicitgridfactory.hh:137
static const int dimensionworld
dimension of the world
Definition: implicitgridfactory.hh:50
Dune::BoundarySegment< dimension, dimensionworld > BoundarySegment
type of a Dune boundary segment
Definition: implicitgridfactory.hh:58
FieldVector< ctype, dimensionworld > WorldVector
type of vector for world coordinates
Definition: implicitgridfactory.hh:53
void addBoundaryId(std::size_t boundarySegmentIndex, std::size_t boundaryId)
add a boundary id
Definition: implicitgridfactory.hh:261
Some common helper methods.
The MMesh class.
Helpers for conversion from CGAL::Point_x to DUNE::FieldVector.
