Definition at line 223 of file slit_mesh_test.C.
◆ build_mesh()
void SlitMeshTest::build_mesh |
( |
| ) |
|
|
inlineprotectedinherited |
Definition at line 90 of file slit_mesh_test.C.
References libMesh::Elem::build_with_id(), libMesh::QUAD4, and libMesh::Elem::set_node().
92 _mesh = std::make_unique<Mesh>(*TestCommWorld);
108 _mesh->set_mesh_dimension(2);
128 Elem * elem_top_left =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 0));
134 Elem * elem_bottom_left =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 1));
140 Elem * elem_top_right =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 2));
146 Elem * elem_bottom_right =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 3));
152 Elem * elem_top_leftleft =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 4));
158 Elem * elem_bottom_leftleft =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 5));
164 Elem * elem_top_rightright =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 6));
170 Elem * elem_bottom_rightright =
_mesh->add_elem(Elem::build_with_id(
QUAD4, 7));
179 _mesh->allow_renumbering(
false);
181 _mesh->prepare_for_use();
virtual Node *& set_node(const unsigned int i)
This is the base class from which all geometric element types are derived.
std::unique_ptr< Mesh > _mesh
A Point defines a location in LIBMESH_DIM dimensional Real space.
◆ CPPUNIT_TEST()
SlitMeshRefinedMeshTest::CPPUNIT_TEST |
( |
testMesh |
| ) |
|
◆ CPPUNIT_TEST_SUITE_END()
SlitMeshRefinedMeshTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
◆ LIBMESH_CPPUNIT_TEST_SUITE() [1/2]
The goal of this test is to ensure that a 2D mesh with nodes overlapping on opposite sides of an internal, "slit" edge is usable.
The mesh has to be connected at more than one node on each side of the slit, however, to ensure that we can find point neighbors of each node.
◆ LIBMESH_CPPUNIT_TEST_SUITE() [2/2]
The goal of this test is the same as the previous, but now we do a uniform refinement and make sure the result mesh is consistent.
i.e. the new node shared between the 1D elements is the same as the node shared on the underlying quads, and so on.
◆ setUp()
void SlitMeshRefinedMeshTest::setUp |
( |
| ) |
|
|
inline |
◆ tearDown()
void SlitMeshTest::tearDown |
( |
| ) |
|
|
inlineinherited |
◆ testMesh()
void SlitMeshRefinedMeshTest::testMesh |
( |
| ) |
|
|
inline |
Definition at line 253 of file slit_mesh_test.C.
257 #ifdef LIBMESH_ENABLE_AMR 259 CPPUNIT_ASSERT_EQUAL(static_cast<dof_id_type>(40),
_mesh->n_elem());
260 CPPUNIT_ASSERT_EQUAL(static_cast<dof_id_type>(32),
_mesh->n_active_elem());
263 CPPUNIT_ASSERT_EQUAL(static_cast<dof_id_type>(48),
_mesh->n_nodes());
std::unique_ptr< Mesh > _mesh
◆ _mesh
std::unique_ptr<Mesh> SlitMeshTest::_mesh |
|
protectedinherited |
The documentation for this class was generated from the following file: