|
HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
|
The BoundaryConditions class provides definition of boundary conditions. More...
#include <BoundaryConditions.hpp>
Public Member Functions | |
| BoundaryConditions (const std::string bc_id, Mesh &mesh) | |
| Initialise data. | |
| const std::string | type (const Edge &edge) const |
| Test the boundary condition of an edge. | |
| const std::string | type (const Vertex &vertex) const |
| Test the boundary condition of a vertex. | |
| const size_t | n_dir_edges () const |
| Returns the number of Dirichlet edges. | |
| const size_t | n_dir_vertices () const |
| Returns the number of Dirichlet vertices. | |
| const std::string | name () const |
| Returns the complete name of the boundary condition. | |
| void | reorder_edges (const std::string pos="end") |
| Re-order edges of the mesh to put the Dirichlet edges at the position "pos" (=end or start) | |
| void | reorder_vertices (const std::string pos="end") |
| Re-order vertices of the mesh to put the Dirichlet vertices at the position "pos" (=end or start) | |
The BoundaryConditions class provides definition of boundary conditions.
\addtogroup BoundaryConditions
| BoundaryConditions::BoundaryConditions | ( | const std::string | bc_id, |
| Mesh & | mesh | ||
| ) |
Initialise data.
| bc_id | The identifier for the boundary condition (D, N or Mx) |
| mesh | reference to the mesh |
Returns the number of Dirichlet edges.
Returns the number of Dirichlet vertices.
|
inline |
Returns the complete name of the boundary condition.
Re-order edges of the mesh to put the Dirichlet edges at the position "pos" (=end or start)
Re-order vertices of the mesh to put the Dirichlet vertices at the position "pos" (=end or start)
Test the boundary condition of an edge.
| edge | Edge on which to check the boundary condition |
Test the boundary condition of a vertex.
| vertex | Vertex on which to check the boundary condition |