HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
Public Member Functions | List of all members
BoundaryConditions Class Reference

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. 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...
 

Detailed Description

The BoundaryConditions class provides definition of boundary conditions.

Constructor & Destructor Documentation

◆ BoundaryConditions()

BoundaryConditions::BoundaryConditions ( const std::string  bc_id,
Mesh &  mesh 
)

Initialise data.

Parameters
bc_idThe identifier for the boundary condition (D, N or Mx)
meshreference to the mesh

Member Function Documentation

◆ 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
faceFace on which to check the boundary condition

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