HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Public Member Functions | List of all members
Mesh2D::Mesh Class Reference

#include <Mesh2D.hpp>

Public Member Functions

 Mesh ()
 
 ~Mesh ()
 
void set_name (std::string name)
 set the name of the mesh More...
 
std::string get_name ()
 getter for the mesh name More...
 
double h_max () const
 < max diameter of cells More...
 
std::size_t dim () const
 dimension of the mesh More...
 
std::size_t n_vertices () const
 number of vertices in the mesh. More...
 
std::size_t n_edges () const
 number of edges in the mesh. More...
 
std::size_t n_faces () const
 number of faces in the mesh. More...
 
std::size_t n_cells () const
 number of cells in the mesh. More...
 
std::size_t n_b_vertices () const
 number of boundary vertices in the mesh. More...
 
std::size_t n_b_edges () const
 number of boundary edges in the mesh. More...
 
std::size_t n_b_faces () const
 number of boundary faces in the mesh. More...
 
std::size_t n_b_cells () const
 number of boundary cells in the mesh. More...
 
std::size_t n_i_vertices () const
 number of internal vertices in the mesh. More...
 
std::size_t n_i_edges () const
 number of internal edges in the mesh. More...
 
std::size_t n_i_faces () const
 number of internal faces in the mesh. More...
 
std::size_t n_i_cells () const
 number of internal cells in the mesh. More...
 
std::vector< Vertex * > get_vertices () const
 lists the vertices in the mesh. More...
 
std::vector< Edge * > get_edges () const
 lists the edges in the mesh. More...
 
std::vector< Face * > get_faces () const
 lists the faces in the mesh. More...
 
std::vector< Cell * > get_cells () const
 lists the cells in the mesh. More...
 
std::vector< Vertex * > get_b_vertices () const
 lists the boundary vertices in the mesh. More...
 
std::vector< Edge * > get_b_edges () const
 lists the boundary edges in the mesh. More...
 
std::vector< Face * > get_b_faces () const
 lists the boundary faces in the mesh. More...
 
std::vector< Cell * > get_b_cells () const
 lists the boundary cells in the mesh. More...
 
std::vector< Vertex * > get_i_vertices () const
 lists the internal vertices in the mesh. More...
 
std::vector< Edge * > get_i_edges () const
 lists the internal edges in the mesh. More...
 
std::vector< Face * > get_i_faces () const
 lists the internal faces in the mesh. More...
 
std::vector< Cell * > get_i_cells () const
 lists the internal cells in the mesh. More...
 
void add_vertex (Vertex *vertex)
 
void add_edge (Edge *edge)
 
void add_face (Face *face)
 
void add_cell (Cell *cell)
 
void add_b_vertex (Vertex *vertex)
 
void add_b_edge (Edge *edge)
 
void add_b_face (Face *face)
 
void add_b_cell (Cell *cell)
 
void add_i_vertex (Vertex *vertex)
 
void add_i_edge (Edge *edge)
 
void add_i_face (Face *face)
 
void add_i_cell (Cell *cell)
 
Vertexvertex (std::size_t index) const
 get a constant pointer to a vertex using its global index More...
 
Edgeedge (std::size_t index) const
 get a constant pointer to a edge using its global index More...
 
Faceface (std::size_t index) const
 get a constant pointer to a face using its global index More...
 
Cellcell (std::size_t index) const
 get a constant pointer to a cell using its global index More...
 
Vertexb_vertex (std::size_t index) const
 get a constant pointer to a boundary vertex using an index More...
 
Edgeb_edge (std::size_t index) const
 get a constant pointer to boundary a edge using an index More...
 
Faceb_face (std::size_t index) const
 get a constant pointer to boundary a face using an index More...
 
Cellb_cell (std::size_t index) const
 get a constant pointer to boundary a cell using an index More...
 
Vertexi_vertex (std::size_t index) const
 get a constant pointer to an internal vertex using an index More...
 
Edgei_edge (std::size_t index) const
 get a constant pointer to an internal edge using an index More...
 
Facei_face (std::size_t index) const
 get a constant pointer to an internal face using an index More...
 
Celli_cell (std::size_t index) const
 get a constant pointer to an internal cell using an index More...
 
std::vector< double > regularity ()
 
void renum (const char B, const std::vector< size_t > new_to_old)
 
size_t find_cell (const VectorRd x) const
 < returns the index of the cell containing the point x More...
 
void plot_simplices (std::ofstream *out)
 
void plot_mesh (std::ofstream *out)
 

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