file
TestDerivedData.cppUnit tests for Mesh/DerivedData.
Unit tests for Mesh/DerivedData. All unit tests start from simple mesh connectivities defined in the code. The tetrahedron mesh in Gmsh ASCII format is as follows. Note that ids start from zero in the code, but from one in Gmsh.
$MeshFormat 2.2 0 8 $EndMeshFormat $Nodes 14 1 0 0 0 2 1 0 0 3 1 1 0 4 0 1 0 5 0 0 1 6 1 0 1 7 1 1 1 8 0 1 1 9 0.5 0.5 0 10 0.5 0.5 1 11 0.5 0 0.5 12 1 0.5 0.5 13 0.5 1 0.5 14 0 0.5 0.5 $EndNodes $Elements 24 1 4 1 0 12 14 9 11 2 4 1 0 10 14 13 12 3 4 1 0 14 13 12 9 4 4 1 0 10 14 12 11 5 4 1 0 1 14 5 11 6 4 1 0 7 6 10 12 7 4 1 0 14 8 5 10 8 4 1 0 8 7 10 13 9 4 1 0 7 13 3 12 10 4 1 0 1 4 14 9 11 4 1 0 13 4 3 9 12 4 1 0 3 2 12 9 13 4 1 0 4 8 14 13 14 4 1 0 6 5 10 11 15 4 1 0 1 2 9 11 16 4 1 0 2 6 12 11 17 4 1 0 6 10 12 11 18 4 1 0 2 12 9 11 19 4 1 0 5 14 10 11 20 4 1 0 14 8 10 13 21 4 1 0 13 3 12 9 22 4 1 0 7 10 13 12 23 4 1 0 14 4 13 9 24 4 1 0 14 1 9 11 $EndElements
Here is the simple triangle mesh used below by the unit tests in Gmsh ASCII format. Note that ids start from zero in the code, but from one in Gmsh.
$MeshFormat 2.2 0 8 $EndMeshFormat $Nodes 14 1 0 0 0 2 1 0 0 3 1 1 0 4 0 1 0 5 0 0 1 6 1 0 1 7 1 1 1 8 0 1 1 9 0.5 0.5 0 10 0.5 0.5 1 11 0.5 0 0.5 12 1 0.5 0.5 13 0.5 1 0.5 14 0 0.5 0.5 $EndNodes $Elements 24 1 2 2 0 1 1 9 2 2 2 2 0 1 1 4 9 3 2 2 0 1 2 9 3 4 2 2 0 1 3 9 4 5 2 2 0 2 5 6 10 6 2 2 0 2 5 10 8 7 2 2 0 2 6 7 10 8 2 2 0 2 7 8 10 9 2 2 0 3 1 2 11 10 2 2 0 3 1 11 5 11 2 2 0 3 2 6 11 12 2 2 0 3 5 11 6 13 2 2 0 4 2 3 12 14 2 2 0 4 2 12 6 15 2 2 0 4 3 7 12 16 2 2 0 4 6 12 7 17 2 2 0 5 3 4 13 18 2 2 0 5 3 13 7 19 2 2 0 5 4 8 13 20 2 2 0 5 7 13 8 21 2 2 0 6 1 14 4 22 2 2 0 6 1 5 14 23 2 2 0 6 4 14 8 24 2 2 0 6 5 8 14 $EndElements