HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Classes | Functions
Mesh

Classes to construct and describe a 2D mesh. More...

Classes

class  HArDCore2D::Cell
 The Cell class provides description of a cell. More...
 
class  HArDCore2D::Edge
 The Edge class provides description of an edge. More...
 
class  HArDCore2D::MeshReaderTyp2
 The MeshReaderTyp2 class provides functions to read a .typ2 mesh file. More...
 
class  HArDCore2D::Mesh
 The Mesh class provides description of a mesh. More...
 
class  HArDCore2D::MeshBuilder
 The MeshBuilder class provides build tools to create a full mesh with all connectivities. More...
 
class  HArDCore2D::Vertex
 The Vertex class provides description of a vertex. More...
 

Functions

Vector2d HArDCore2D::Cell::center_mass () const
 returns the center of mass of the cell
 
bool HArDCore2D::Cell::is_boundary () const
 returns true if cell touches the boundary
 
double HArDCore2D::Cell::diam () const
 returns diameter of cell
 
double HArDCore2D::Cell::measure () const
 returns area of cell
 
size_t HArDCore2D::Cell::global_index () const
 cell index
 
size_t HArDCore2D::Cell::n_edges () const
 returns number of edges of the cell
 
size_t HArDCore2D::Cell::n_vertices () const
 returns number of vertices of the cell
 
size_t HArDCore2D::Edge::global_index () const
 returns the edge global index
 
size_t HArDCore2D::Edge::n_cells () const
 returns the number of cells neighbouring the edge
 
bool HArDCore2D::Edge::is_boundary () const
 getter to see if edge is boundary edge
 
Vector2d HArDCore2D::Edge::center_mass () const
 get the midpoint of the edge
 
Vector2d HArDCore2D::Edge::tangent () const
 get the tangent to the edge
 
size_t HArDCore2D::Mesh::n_cells () const
 number of cells in the mesh
 
size_t HArDCore2D::Mesh::n_edges () const
 number of edges in the mesh
 
size_t HArDCore2D::Mesh::n_vertices () const
 number of vertices in the mesh
 
double HArDCore2D::Mesh::h_max () const
 max of diameter of cells
 
size_t HArDCore2D::Mesh::dim () const
 dimension of the mesh (2)
 
size_t HArDCore2D::Mesh::next_edge_idx ()
 gets the next global edge index
 
void HArDCore2D::Mesh::set_name (std::string name)
 set the name of the mesh
 
std::string HArDCore2D::Mesh::get_name ()
 getter for the edge name
 
bool HArDCore2D::Mesh::add_cell (Cell *cell)
 adds a cell to the mesh
 
bool HArDCore2D::Mesh::add_b_cell (Cell *cell)
 adds a boundary cell to the mesh
 
bool HArDCore2D::Mesh::add_i_cell (Cell *cell)
 adds an interior cell to the mesh
 
bool HArDCore2D::Mesh::add_b_edge (Edge *edge)
 adds a boundary edge to the mesh
 
bool HArDCore2D::Mesh::add_i_edge (Edge *edge)
 adds an interior edge to the mesh
 
bool HArDCore2D::Mesh::add_vertex (Vertex *vertex)
 adds a vertex to the mesh
 
bool HArDCore2D::Mesh::add_b_vertex (Vertex *vertex)
 adds a boundary vertex to the mesh
 
bool HArDCore2D::Mesh::add_i_vertex (Vertex *vertex)
 adds an interior vertex to the mesh
 
std::vector< Cell * > HArDCore2D::Mesh::get_cells () const
 lists the cells in the mesh.
 
std::vector< Edge * > HArDCore2D::Mesh::get_edges () const
 lists the edges in the mesh.
 
std::vector< Vertex * > HArDCore2D::Mesh::get_vertices () const
 lists the vertices in the mesh.
 
std::vector< Cell * > HArDCore2D::Mesh::get_b_cells () const
 lists the boundary cells in the mesh.
 
std::vector< Edge * > HArDCore2D::Mesh::get_b_edges () const
 lists the boundary edges in the mesh.
 
std::vector< Vertex * > HArDCore2D::Mesh::get_b_vertices () const
 lists the boundary vertices in the mesh.
 
std::vector< Cell * > HArDCore2D::Mesh::get_i_cells () const
 lists the interior cells in the mesh.
 
std::vector< Edge * > HArDCore2D::Mesh::get_i_edges () const
 lists the interior edges in the mesh.
 
std::vector< Vertex * > HArDCore2D::Mesh::get_i_vertices () const
 lists the interior vertices in the mesh.
 
size_t HArDCore2D::Vertex::global_index () const
 returns the edges global index
 
Vector2d HArDCore2D::Vertex::coords () const
 returns the coordinates of the vertex
 
size_t HArDCore2D::Vertex::n_cells () const
 returns the number of cells that contain the vertex
 
size_t HArDCore2D::Vertex::n_edges () const
 returns the number of edges that contain the vertex
 
size_t HArDCore2D::Vertex::n_vertices () const
 returns the number of vertices connected by an edge to the vertex
 
std::vector< Cell * > HArDCore2D::Vertex::get_cells () const
 returns the list of cells containing the vertex
 
std::vector< Edge * > HArDCore2D::Vertex::get_edges () const
 returns the list of edges containint the vertex
 
std::vector< Vertex * > HArDCore2D::Vertex::get_vertices () const
 returns the list of vertices linked to the vertex
 
bool HArDCore2D::Vertex::is_boundary () const
 returns true if vertex lies on the boundary
 

Detailed Description

Classes to construct and describe a 2D mesh.