|
HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face 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 Face &face) const |
| Test the boundary condition of an face. | |
| 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_faces () const |
| Returns the number of Dirichlet faces. | |
| 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 | id () |
| Returns the identifier of the BC. | |
| const std::string | name () const |
| Returns the complete name of the boundary condition. | |
| void | reorder_faces (const std::string pos="end") |
| Re-order faces of the mesh to put the Dirichlet faces at the position "pos" (=end or start) | |
| 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.
| 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 |
|
inline |
Returns the identifier of the BC.
Returns the number of Dirichlet edges.
Returns the number of Dirichlet faces.
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 faces of the mesh to put the Dirichlet faces 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 an face.
| face | Face on which to check the boundary condition |
Test the boundary condition of a vertex.
| vertex | Vertex on which to check the boundary condition |