The BoundaryConditions class provides definition of boundary conditions.
More...
#include <BoundaryConditions.hpp>
|
| | BoundaryConditions (const std::string bc_id, Mesh &mesh) |
| | Initialise data. More...
|
| |
| const std::string | type (Face &face) const |
| | Test the boundary condition of an face. More...
|
| |
| const size_t | n_dir_faces () const |
| | Returns the number of Dirichlet faces. More...
|
| |
| const std::string | name () const |
| | Returns the complete name of the boundary condition. More...
|
| |
| void | reorder_faces (const std::string pos="end") |
| | Re-order faces of the mesh to put the Dirichlet faces at the end. More...
|
| |
The BoundaryConditions class provides definition of boundary conditions.
◆ BoundaryConditions()
| BoundaryConditions::BoundaryConditions |
( |
const std::string |
bc_id, |
|
|
Mesh & |
mesh |
|
) |
| |
Initialise data.
- Parameters
-
| bc_id | The identifier for the boundary condition (D, N or Mx) |
| mesh | reference to the mesh |
◆ n_dir_faces()
| const size_t BoundaryConditions::n_dir_faces |
( |
| ) |
const |
|
inline |
Returns the number of Dirichlet faces.
◆ name()
| const std::string BoundaryConditions::name |
( |
| ) |
const |
|
inline |
Returns the complete name of the boundary condition.
◆ reorder_faces()
| void BoundaryConditions::reorder_faces |
( |
const std::string |
pos = "end" | ) |
|
Re-order faces of the mesh to put the Dirichlet faces at the end.
◆ type()
| const std::string BoundaryConditions::type |
( |
Face & |
face | ) |
const |
Test the boundary condition of an face.
- Returns
- "dir" or "neu" depending if the face is a Dirichlet or Neumann boundary condition, as determined by m_bc_id below. For an internal face, returns "int". m_bc_id = "D": all faces are Dirichlet m_bc_id = "N": all faces are Neumann m_bc_id = "Mx" (x=0,1,...): various types of mixed boundary conditions, some faces will be Dirichlet and some will be Neumman.
- Parameters
-
| face | Face on which to check the boundary condition |
The documentation for this class was generated from the following files: