fix ordering hex20 and fixed support wedge15
@@ -86,6 +86,7 @@ _gmsh_to_meshio_type = {
15: "vertex",
16: "quad8",
17: "hexahedron20",
+ 18: "wedge15",
21: "triangle10",
23: "triangle15",
25: "triangle21",
@@ -152,9 +153,12 @@ def _gmsh_to_meshio_order(cells):
# fmt: off
"tetra10": [0, 1, 2, 3, 4, 5, 6, 7, 9, 8],
"hexahedron20": [
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 16,
- 9, 17, 10, 18, 19, 12, 15, 13, 14
- ],
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13,
+ 9, 16, 18, 19, 17, 10, 12, 14, 15,
+ ], # https://vtk.org/doc/release/4.2/html/classvtkQuadraticHexahedron.html
+ "wedge15": [
+ 0, 1, 2, 3, 4, 5, 6, 9, 7, 12, 14, 13, 8, 10, 11
+ ], # http://davis.lbl.gov/Manuals/VTK-4.5/classvtkQuadraticWedge.html
# fmt: on
}
return _reorder_cells(cells, meshio_ordering)
@@ -166,8 +170,11 @@ def _meshio_to_gmsh_order(cells):
# fmt: off
"tetra10": [0, 1, 2, 3, 4, 5, 6, 7, 9, 8],
"hexahedron20": [
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 13,
- 9, 16, 18, 19, 17, 10, 12, 14, 15,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 16,
+ 9, 17, 10, 18, 19, 12, 15, 13, 14
+ ],
+ "wedge15": [
+ 0, 1, 2, 3, 4, 5, 6, 8, 12, 7, 13, 14, 9, 11, 10
],
# fmt: on
}
