|
dune-mmesh 1.4.1-git
|
Loading...
Searching...
No Matches
explicitgridfactory.hh
Go to the documentation of this file.
STL namespace.
int id()
#define DUNE_THROW(E,...)
const IndexPair * pair(const std::size_t &local) const
static auto makePoint(const Dune::FieldVector< ctype, 2 > &v)
Convert FieldVector to CGAL Point 2.
Definition pointfieldvector.hh:63
constexpr auto get(std::integer_sequence< T, II... >, std::integral_constant< std::size_t, pos >={})
IteratorRange<... > vertices(const GV &gv)
vertex
const EntityType & entity() const
virtual void insertElement(const GeometryType &type, const std::vector< unsigned int > &vertices)=0
specialization of the explicit GridFactory for MMesh
Definition explicitgridfactory.hh:32
Dune::BoundarySegment< dimension, dimensionworld > BoundarySegment
type of a Dune boundary segment
Definition explicitgridfactory.hh:53
const BoundarySegments & boundarySegments() const
returns the boundary segment to index map
Definition explicitgridfactory.hh:371
const std::vector< Vertex_handle > & vertexHandles() const
return the vertex handles
Definition explicitgridfactory.hh:434
FieldVector< ctype, dimensionworld > WorldVector
type of vector for world coordinates
Definition explicitgridfactory.hh:48
static const bool supportsBoundaryIds
are boundary ids supported by this factory?
Definition explicitgridfactory.hh:80
Grid::ctype ctype
type of (scalar) coordinates
Definition explicitgridfactory.hh:38
FieldMatrix< ctype, dimensionworld, dimensionworld > WorldMatrix
type of matrix from world coordinates to world coordinates
Definition explicitgridfactory.hh:50
void addBoundaryId(std::size_t boundarySegmentIndex, std::size_t boundaryId)
add a boundary id
Definition explicitgridfactory.hh:377
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.
Definition explicitgridfactory.hh:254
Grid::IdType IdType
type of an id
Definition explicitgridfactory.hh:55
void insertVertex(const WorldVector &pos)
Insert a vertex into the macro grid.
Definition explicitgridfactory.hh:312
void insertBoundarySegment(const std::vector< unsigned int > &vertices, const std::shared_ptr< BoundarySegment > &boundarySegment)
Definition explicitgridfactory.hh:283
void insertElement(const GeometryType &type, const std::vector< unsigned int > &v)
insert an element into the macro grid
Definition explicitgridfactory.hh:92
virtual void insertBoundarySegment(const std::vector< unsigned int > &vertices)
insert a boundary segment into the macro grid
Definition explicitgridfactory.hh:267
void insertInterface(const std::vector< unsigned int > &vertices, const std::size_t marker=1)
insert an interface into the macro grid
Definition explicitgridfactory.hh:333
unsigned int insertionIndex(const typename Grid::LeafIntersection &intersection) const
return insertion index of boundary intersection
Definition explicitgridfactory.hh:365
static const int dimension
dimension of the grid
Definition explicitgridfactory.hh:43
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
Definition explicitgridfactory.hh:103
Grid::HostGridType HostGrid
type of the hostgrid
Definition explicitgridfactory.hh:40
unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
return insertion index of entity
Definition explicitgridfactory.hh:348
std::unordered_map< IdType, std::size_t > InterfaceSegments
type of the interface segment set
Definition explicitgridfactory.hh:62
MMeshExplicitGridFactory()
Definition explicitgridfactory.hh:85
unsigned int insertionIndex(const typename Codim< dimension >::Entity &entity) const
return insertion index of vertex entity
Definition explicitgridfactory.hh:356
std::unique_ptr< Grid > createGrid()
finalize grid creation and hand over the grid
Definition explicitgridfactory.hh:389
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.
Definition explicitgridfactory.hh:242
static const int dimensionworld
dimension of the world
Definition explicitgridfactory.hh:45
std::unordered_map< std::size_t, std::size_t > BoundaryIds
Definition explicitgridfactory.hh:59
std::unordered_map< IdType, std::size_t > BoundarySegments
type of the boundary segment id map
Definition explicitgridfactory.hh:58
static const bool supportPeriodicity
the factory is not able to create periodic meshes
Definition explicitgridfactory.hh:82
const BoundaryIds & boundaryIds() const
returns the boundary segment index to boundary id map
Definition explicitgridfactory.hh:374
void insertInterfaceBoundarySegment(const std::vector< unsigned int > &vertices)
Definition explicitgridfactory.hh:290
Definition explicitgridfactory.hh:65
Grid::template Codim< codim >::Entity Entity
Definition explicitgridfactory.hh:66
The MMesh class.
Some common helper methods.
T begin(T... args)
T end(T... args)
T erase(T... args)
T find(T... args)
T insert(T... args)
T make_pair(T... args)
T make_tuple(T... args)
T push_back(T... args)
T size(T... args)
T sort(T... args)
T swap(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8