271 _mesh = std::make_unique<Mesh>(*TestCommWorld);
284 0.2, 0.8, 0.2, 0.7,
QUAD9);
289 if (!
_mesh->is_serial())
291 _mesh->skip_noncritical_partitioning(
true);
316 for (
auto & elem :
_mesh->active_element_ptr_range())
318 const Point c = elem->vertex_average();
319 if (c(0) < 0.6 && c(1) < 0.4)
320 elem->subdomain_id() = 1;
322 elem->subdomain_id() = 2;
331 for (
auto & elem :
_mesh->active_element_ptr_range())
333 const Point c = elem->vertex_average();
334 if (c(0) < 0.6 && c(1) < 0.4)
343 if (c(0) < 0.75 && c(1) < 0.4)
345 if (c(0) < 0.6 && c(1) < 0.5)
std::unique_ptr< UnstructuredMesh > _internal_boundary_mesh
std::unique_ptr< UnstructuredMesh > _exterior_boundary_mesh
std::unique_ptr< UnstructuredMesh > _mesh
The BoundaryInfo class contains information relevant to boundary conditions including storing faces...
std::unique_ptr< UnstructuredMesh > _left_boundary_mesh
static constexpr boundary_id_type bid1
std::unique_ptr< UnstructuredMesh > _multi_boundary_mesh
void add_side(const dof_id_type elem, const unsigned short int side, const boundary_id_type id)
Add side side of element number elem with boundary id id to the boundary information data structure...
static constexpr boundary_id_type bid2
A Point defines a location in LIBMESH_DIM dimensional Real space.