Skip to content

Cell Types

meshio++ uses its own canonical type names. Every format reader maps native element names to these; every writer maps them back.

Node ordering follows the VTK convention where available. See the meshio wiki for diagrams.

0-D

TypeNodes
vertex1

1-D (line elements)

TypeNodesDescription
line2Linear line
line33Quadratic line
line44Cubic line
line55Quartic line
line66
line77
line88
line99
line1010
line1111

2-D surface elements

Triangles

TypeNodes
triangle3
triangle66
triangle1010
triangle1515
triangle2121
triangle2828
triangle3636
triangle4545
triangle5555
triangle6666

Quadrilaterals

TypeNodes
quad4
quad88
quad99
quad1616
quad2525
quad3636
quad4949
quad6464
quad8181
quad100100
quad121121

Arbitrary polygons

TypeNodes
polygonvariable

For polygon cells, all cells within a CellBlock must have the same number of nodes (the array shape determines this). Multiple CellBlock entries with type polygon but different node counts are permitted.

3-D volume elements

Tetrahedra

TypeNodes
tetra4
tetra1010
tetra2020
tetra3535
tetra5656
tetra8484
tetra120120
tetra165165
tetra220220
tetra286286

Hexahedra

TypeNodes
hexahedron8
hexahedron2020
hexahedron2424
hexahedron2727
hexahedron6464
hexahedron125125
hexahedron216216
hexahedron343343
hexahedron512512
hexahedron729729
hexahedron10001000
hexahedron13311331

Wedges (prisms)

TypeNodes
wedge6
wedge1515
wedge1818
wedge4040
wedge7575
wedge126126
wedge196196
wedge288288
wedge405405
wedge550550

Pyramids

TypeNodes
pyramid5
pyramid1313
pyramid1414

Arbitrary polyhedra

TypeDescription
polyhedron4Tetrahedron as polyhedron
polyhedron5Pyramid as polyhedron
polyhedronnNN-faced polyhedron

Polyhedron cells store their face connectivity as a list of lists (ragged), not a rectangular numpy array. The type name encodes the number of faces: polyhedron4 has 4 faces.

VTK Lagrange types

Higher-order VTK Lagrange elements (arbitrary polynomial order, controlled at runtime):

Type
VTK_LAGRANGE_CURVE
VTK_LAGRANGE_TRIANGLE
VTK_LAGRANGE_QUADRILATERAL
VTK_LAGRANGE_TETRAHEDRON
VTK_LAGRANGE_HEXAHEDRON
VTK_LAGRANGE_WEDGE
VTK_LAGRANGE_PYRAMID

These are read and written by the VTK/VTU readers/writers only.

Released under the MIT License.