HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MeshND::Mesh< dimension > Class Template Reference

Class to describe a mesh. More...

#include <MeshND.hpp>

Public Member Functions

 Mesh ()
 
 ~Mesh ()
 
void set_name (std::string name)
 set the name of the mesh
 
std::string get_name ()
 getter for the mesh name
 
double h_max () const
 < max diameter of cells
 
std::size_t dim () const
 dimension of the mesh
 
std::size_t n_vertices () const
 number of vertices in the mesh.
 
std::size_t n_edges () const
 number of edges in the mesh.
 
std::size_t n_faces () const
 number of faces in the mesh.
 
std::size_t n_cells () const
 number of cells in the mesh.
 
std::size_t n_elems (size_t d) const
 < number of d-cells in the mesh
 
std::size_t n_b_vertices () const
 number of boundary vertices in the mesh.
 
std::size_t n_b_edges () const
 number of boundary edges in the mesh.
 
std::size_t n_b_faces () const
 number of boundary faces in the mesh.
 
std::size_t n_b_cells () const
 number of boundary cells in the mesh.
 
std::size_t n_i_vertices () const
 number of internal vertices in the mesh.
 
std::size_t n_i_edges () const
 number of internal edges in the mesh.
 
std::size_t n_i_faces () const
 number of internal faces in the mesh.
 
std::size_t n_i_cells () const
 number of internal cells in the mesh.
 
std::vector< Vertex< dimension > * > get_vertices () const
 lists the vertices in the mesh.
 
std::vector< Edge< dimension > * > get_edges () const
 lists the edges in the mesh.
 
std::vector< Face< dimension > * > get_faces () const
 lists the faces in the mesh.
 
std::vector< Cell< dimension > * > get_cells () const
 lists the cells in the mesh.
 
std::vector< Vertex< dimension > * > get_b_vertices () const
 lists the boundary vertices in the mesh.
 
std::vector< Edge< dimension > * > get_b_edges () const
 lists the boundary edges in the mesh.
 
std::vector< Face< dimension > * > get_b_faces () const
 lists the boundary faces in the mesh.
 
std::vector< Cell< dimension > * > get_b_cells () const
 lists the boundary cells in the mesh.
 
std::vector< Vertex< dimension > * > get_i_vertices () const
 lists the internal vertices in the mesh.
 
std::vector< Edge< dimension > * > get_i_edges () const
 lists the internal edges in the mesh.
 
std::vector< Face< dimension > * > get_i_faces () const
 lists the internal faces in the mesh.
 
std::vector< Cell< dimension > * > get_i_cells () const
 lists the internal cells in the mesh.
 
void add_vertex (Vertex< dimension > *vertex)
 
void add_edge (Edge< dimension > *edge)
 
void add_face (Face< dimension > *face)
 
void add_cell (Cell< dimension > *cell)
 
void add_b_vertex (Vertex< dimension > *vertex)
 
void add_b_edge (Edge< dimension > *edge)
 
void add_b_face (Face< dimension > *face)
 
void add_b_cell (Cell< dimension > *cell)
 
void add_i_vertex (Vertex< dimension > *vertex)
 
void add_i_edge (Edge< dimension > *edge)
 
void add_i_face (Face< dimension > *face)
 
void add_i_cell (Cell< dimension > *cell)
 
Vertex< dimension > * vertex (std::size_t index) const
 get a constant pointer to a vertex using its global index
 
Edge< dimension > * edge (std::size_t index) const
 get a constant pointer to a edge using its global index
 
Face< dimension > * face (std::size_t index) const
 get a constant pointer to a face using its global index
 
Cell< dimension > * cell (std::size_t index) const
 get a constant pointer to a cell using its global index
 
Vertex< dimension > * b_vertex (std::size_t index) const
 get a constant pointer to a boundary vertex using an index
 
Edge< dimension > * b_edge (std::size_t index) const
 get a constant pointer to boundary a edge using an index
 
Face< dimension > * b_face (std::size_t index) const
 get a constant pointer to boundary a face using an index
 
Cell< dimension > * b_cell (std::size_t index) const
 get a constant pointer to boundary a cell using an index
 
Vertex< dimension > * i_vertex (std::size_t index) const
 get a constant pointer to an internal vertex using an index
 
Edge< dimension > * i_edge (std::size_t index) const
 get a constant pointer to an internal edge using an index
 
Face< dimension > * i_face (std::size_t index) const
 get a constant pointer to an internal face using an index
 
Cell< dimension > * i_cell (std::size_t index) const
 get a constant pointer to an internal cell using an index
 
std::vector< size_t > get_boundary (size_t d, size_t index) const
 
int boundary_orientation (size_t d, size_t i, size_t j) const
 
std::vector< double > regularity ()
 
void renum (const char B, const std::vector< size_t > new_to_old)
 

Detailed Description

template<std::size_t dimension>
class MeshND::Mesh< dimension >

Class to describe a mesh.


The documentation for this class was generated from the following file: