|
libMesh
|
Protected Member Functions | |
| void | do_test (ElemType elem_type) |
Private Types | |
| using | Map = std::map< ElemType, std::map< dof_id_type, std::set< dof_id_type > >> |
Static Private Member Functions | |
| static Map | build_elem_type_to_neighbor_map () |
Static Private Attributes | |
| static const Map | elem_type_to_neighbor_map = build_elem_type_to_neighbor_map() |
Definition at line 17 of file nodal_neighbors.C.
|
private |
Definition at line 75 of file nodal_neighbors.C.
|
inlinestaticprivate |
Definition at line 77 of file nodal_neighbors.C.
References libMesh::EDGE2, libMesh::EDGE3, libMesh::EDGE4, libMesh::HEX20, libMesh::HEX27, libMesh::HEX8, libMesh::PRISM18, libMesh::PRISM20, libMesh::PRISM21, libMesh::PRISM6, libMesh::PYRAMID13, libMesh::PYRAMID14, libMesh::PYRAMID18, libMesh::PYRAMID5, libMesh::QUAD4, libMesh::QUAD8, libMesh::QUAD9, libMesh::TET10, libMesh::TET14, libMesh::TET4, libMesh::TRI3, libMesh::TRI6, and libMesh::TRI7.
| NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge2 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge3 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testEdge4 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testOrientation | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTri3 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTri6 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTri7 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testQuad4 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testQuad8 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testQuad9 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTet4 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTet10 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testTet14 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPyramid5 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPyramid13 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPyramid14 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPyramid18 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPrism6 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPrism18 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPrism20 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testPrism21 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testHex8 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testHex20 | ) |
| NodalNeighborsTest::CPPUNIT_TEST | ( | testHex27 | ) |
| NodalNeighborsTest::CPPUNIT_TEST_SUITE_END | ( | ) |
|
inlineprotected |
Definition at line 241 of file nodal_neighbors.C.
References libMesh::MeshTools::Generation::build_cube(), libMesh::MeshTools::Generation::build_line(), libMesh::MeshTools::build_nodes_to_elem_map(), libMesh::MeshTools::Generation::build_square(), dim, libMesh::MeshTools::find_nodal_neighbors(), libMesh::ReferenceElem::get(), libMesh::Elem::local_node(), mesh, TestCommWorld, and libMesh::Elem::type_to_default_order_map.
| NodalNeighborsTest::LIBMESH_CPPUNIT_TEST_SUITE | ( | NodalNeighborsTest | ) |
The goal of this test is to ensure that MeshTools::find_nodal_neighbors() works as expected.
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 332 of file nodal_neighbors.C.
|
inline |
Definition at line 334 of file nodal_neighbors.C.
|
inline |
Definition at line 336 of file nodal_neighbors.C.
References libMesh::EDGE2.
|
inline |
Definition at line 343 of file nodal_neighbors.C.
References libMesh::EDGE3.
|
inline |
Definition at line 350 of file nodal_neighbors.C.
References libMesh::EDGE4.
|
inline |
Definition at line 464 of file nodal_neighbors.C.
References libMesh::HEX20.
|
inline |
Definition at line 470 of file nodal_neighbors.C.
References libMesh::HEX27.
|
inline |
Definition at line 458 of file nodal_neighbors.C.
References libMesh::HEX8.
|
inline |
Definition at line 476 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.
|
inline |
Definition at line 440 of file nodal_neighbors.C.
References libMesh::PRISM18.
|
inline |
Definition at line 446 of file nodal_neighbors.C.
References libMesh::PRISM20.
|
inline |
Definition at line 452 of file nodal_neighbors.C.
References libMesh::PRISM21.
|
inline |
Definition at line 434 of file nodal_neighbors.C.
References libMesh::PRISM6.
|
inline |
Definition at line 416 of file nodal_neighbors.C.
References libMesh::PYRAMID13.
|
inline |
Definition at line 422 of file nodal_neighbors.C.
References libMesh::PYRAMID14.
|
inline |
Definition at line 428 of file nodal_neighbors.C.
References libMesh::PYRAMID18.
|
inline |
Definition at line 410 of file nodal_neighbors.C.
References libMesh::PYRAMID5.
|
inline |
Definition at line 374 of file nodal_neighbors.C.
References libMesh::QUAD4.
|
inline |
Definition at line 380 of file nodal_neighbors.C.
References libMesh::QUAD8.
|
inline |
Definition at line 386 of file nodal_neighbors.C.
References libMesh::QUAD9.
|
inline |
Definition at line 398 of file nodal_neighbors.C.
References libMesh::TET10.
|
inline |
Definition at line 404 of file nodal_neighbors.C.
References libMesh::TET14.
|
inline |
Definition at line 392 of file nodal_neighbors.C.
References libMesh::TET4.
|
inline |
Definition at line 356 of file nodal_neighbors.C.
References libMesh::TRI3.
|
inline |
Definition at line 362 of file nodal_neighbors.C.
References libMesh::TRI6.
|
inline |
Definition at line 368 of file nodal_neighbors.C.
References libMesh::TRI7.
|
inlinestaticprivate |
Definition at line 236 of file nodal_neighbors.C.
1.8.14