libMesh
|
Public Member Functions | |
LIBMESH_CPPUNIT_TEST_SUITE (NodalNeighborsTest) | |
The goal of this test is to ensure that MeshTools::find_nodal_neighbors() works in 1D. More... | |
CPPUNIT_TEST (testEdge2) | |
CPPUNIT_TEST (testEdge3) | |
CPPUNIT_TEST (testEdge4) | |
CPPUNIT_TEST (testOrientation) | |
CPPUNIT_TEST_SUITE_END () | |
void | setUp () |
void | tearDown () |
void | testEdge2 () |
void | testEdge3 () |
void | testEdge4 () |
void | testOrientation () |
Protected Member Functions | |
void | do_test (unsigned n_elem, ElemType elem_type, dof_id_type *validation_data) |
Definition at line 14 of file nodal_neighbors.C.
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge2 | ) |
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge3 | ) |
NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge4 | ) |
NodalNeighborsTest::CPPUNIT_TEST | ( | testOrientation | ) |
NodalNeighborsTest::CPPUNIT_TEST_SUITE_END | ( | ) |
|
inlineprotected |
Definition at line 46 of file nodal_neighbors.C.
References libMesh::MeshTools::Generation::build_line(), libMesh::MeshTools::build_nodes_to_elem_map(), libMesh::MeshTools::find_nodal_neighbors(), mesh, libMesh::MeshTools::n_elem(), and TestCommWorld.
NodalNeighborsTest::LIBMESH_CPPUNIT_TEST_SUITE | ( | NodalNeighborsTest | ) |
The goal of this test is to ensure that MeshTools::find_nodal_neighbors() works in 1D.
If the numbering of MeshGeneration::build_line() ever changes, this test will break, as it compares hand-checked hard-coded "validation" data with the results of MeshTools::find_nodal_neighbors(). We also use a ReplicatedMesh here to match the hard-coded numbering.
The testOrientation() test is not specifically related to find_nodal_neighbors(), instead it is checking that we can still find_neighbors() correctly in 1D when the mesh is topologically a straight line, but not all elements have the same "orientation" (as defined by their local node numbering). As far as I know, we don't require 2D/3D elements to have the same orientation in order for them to be considered neighbors, so this test ensures the same thing works for 1D elements.
|
inline |
Definition at line 91 of file nodal_neighbors.C.
|
inline |
Definition at line 93 of file nodal_neighbors.C.
|
inline |
Definition at line 95 of file nodal_neighbors.C.
References libMesh::EDGE2, and libMesh::DofObject::invalid_id.
|
inline |
Definition at line 119 of file nodal_neighbors.C.
References libMesh::EDGE3, and libMesh::DofObject::invalid_id.
|
inline |
Definition at line 143 of file nodal_neighbors.C.
References libMesh::EDGE4, and libMesh::DofObject::invalid_id.
|
inline |
Definition at line 165 of file nodal_neighbors.C.
References libMesh::MeshBase::add_elem(), libMesh::MeshBase::add_point(), libMesh::Elem::build_with_id(), libMesh::EDGE2, mesh, libMesh::MeshBase::node_ptr(), libMesh::MeshBase::prepare_for_use(), libMesh::Elem::set_node(), and TestCommWorld.