21#ifndef _BOUNDARY_CONDITIONS_HPP
22#define _BOUNDARY_CONDITIONS_HPP
50 const std::string
bc_id,
55 const std::string
type(
65 const std::string
type(
76 return m_n_dir_vertices;
80 inline const std::string
name()
const {
83 }
else if (m_bc_id ==
"N"){
85 }
else if (m_bc_id ==
"M0"){
88 std::cout <<
"Unknown boundary conditions: " << m_bc_id <<
"\n";
100 const std::string m_bc_id;
104 size_t m_n_dir_edges;
105 size_t m_n_dir_vertices;
The BoundaryConditions class provides definition of boundary conditions.
Definition BoundaryConditions.hpp:45
const size_t n_dir_vertices() const
Returns the number of Dirichlet vertices.
Definition BoundaryConditions.hpp:75
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)
Definition BoundaryConditions.cpp:132
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)
Definition BoundaryConditions.cpp:86
const std::string type(const Edge &edge) const
Test the boundary condition of an edge.
Definition BoundaryConditions.cpp:41
const std::string name() const
Returns the complete name of the boundary condition.
Definition BoundaryConditions.hpp:80
const size_t n_dir_edges() const
Returns the number of Dirichlet edges.
Definition BoundaryConditions.hpp:70
std::string bc_id
Definition HHO_DiffAdvecReac.hpp:44
Definition ddr-klplate.hpp:27