53 std::vector<BoundaryInfo::BCTuple> bc_tuples =
56 for (
const auto & t : bc_tuples)
65 for (
unsigned short edge=0; edge<4; ++edge)
69 for (
unsigned short edge=8; edge<12; ++edge)
80 writer.write(filename);
88 IOClass reader(read_mesh);
89 reader.read(filename);
93 CPPUNIT_ASSERT(read_bi.
edgeset_name(0) ==
"back_edgeset");
94 CPPUNIT_ASSERT(read_bi.
edgeset_name(5) ==
"front_edgeset");
99 std::map<boundary_id_type, unsigned int> counts;
101 for (
const auto & t : edge_tuples)
102 counts[std::get<2>(t)]++;
103 CPPUNIT_ASSERT(counts[0] == 100);
104 CPPUNIT_ASSERT(counts[5] == 100);
The ReplicatedMesh class is derived from the MeshBase class, and is used to store identical copies of...
std::size_t n_edge_conds() const
libMesh::Parallel::Communicator * TestCommWorld
const BoundaryInfo & get_boundary_info() const
The information about boundary ids on the mesh.
void build_side_list(std::vector< dof_id_type > &element_id_list, std::vector< unsigned short int > &side_list, std::vector< boundary_id_type > &bc_id_list) const
Creates a list of element numbers, sides, and ids for those sides.
The BoundaryInfo class contains information relevant to boundary conditions including storing faces...
void build_edge_list(std::vector< dof_id_type > &element_id_list, std::vector< unsigned short int > &edge_list, std::vector< boundary_id_type > &bc_id_list) const
Creates a list of element numbers, edges, and boundary ids for those edges.
const std::set< boundary_id_type > & get_edge_boundary_ids() const
std::string & edgeset_name(boundary_id_type id)
void add_edge(const dof_id_type elem, const unsigned short int edge, const boundary_id_type id)
Add edge edge of element number elem with boundary id id to the boundary information data structure...