Type codes
The element type number fixes the shape, the order of approximation and the number of nodes. Each entry below is written as code (number of nodes). The manual describes codes 1 to 31, 92 and 93; the others come from the definitions in Gmsh 4.15.2’s source. “Complete” elements have every node of their order; “incomplete” ones leave some interior nodes out.
| Shape | Complete | Incomplete |
|---|---|---|
| Line | 84 (1), 1 (2), 8 (3), 26 (4), 27 (5), 28 (6), 62 (7), 63 (8), 64 (9), 65 (10), 66 (11) | – |
| Triangle | 85 (1), 2 (3), 9 (6), 21 (10), 23 (15), 25 (21), 42 (28), 43 (36), 44 (45), 45 (55), 46 (66) | 20 (9), 22 (12), 24 (15), 52 (18), 53 (21), 54 (24), 55 (27), 56 (30) |
| Quadrangle | 86 (1), 3 (4), 10 (9), 36 (16), 37 (25), 38 (36), 47 (49), 48 (64), 49 (81), 50 (100), 51 (121) | 16 (8), 39 (12), 40 (16), 41 (20), 57 (24), 58 (28), 59 (32), 60 (36), 61 (40) |
| Tetrahedron | 87 (1), 4 (4), 11 (10), 29 (20), 30 (35), 31 (56), 71 (84), 72 (120), 73 (165), 74 (220), 75 (286) | 137 (16), 32 (22), 33 (28), 79 (34), 80 (40), 81 (46), 82 (52), 83 (58) |
| Hexahedron | 88 (1), 5 (8), 12 (27), 92 (64), 93 (125), 94 (216), 95 (343), 96 (512), 97 (729), 98 (1000) | 17 (20), 99 (32), 100 (44), 101 (56), 102 (68), 103 (80), 104 (92), 105 (104) |
| Prism | 89 (1), 6 (6), 13 (18), 90 (40), 91 (75), 106 (126), 107 (196), 108 (288), 109 (405), 110 (550) | 18 (15), 111 (24), 112 (33), 113 (42), 114 (51), 115 (60), 116 (69), 117 (78) |
| Pyramid | 132 (1), 7 (5), 14 (14), 118 (30), 119 (55), 120 (91), 121 (140), 122 (204), 123 (285), 124 (385) | 19 (13), 125 (21), 126 (29), 127 (37), 128 (45), 129 (53), 130 (61), 131 (69) |
| Code | Special type | Nodes |
|---|---|---|
| 15 | Point | 1 |
| 34 | Polygon | Variable |
| 35 | Polyhedron | Variable |
| 67 | Border line | 2 |
| 68 | Border triangle | 3 |
| 69 | Border polygon | Variable |
| 70 | Child line | 2 |
| 133 | Sub-point of a cut element | 1 |
| 134 | Sub-line | 2 |
| 135 | Sub-triangle | 3 |
| 136 | Sub-tetrahedron | 4 |
| 138 | “Mini” triangle | Defined, but Gmsh 4.15.2’s reader gives it no node count |
| 139 | “Mini” tetrahedron | Defined, but Gmsh 4.15.2’s reader gives it no node count |
| 140 | Trihedron: one four-sided and two triangular faces, joining hexahedra to tetrahedra | 4 |
Corners
Positions in the node list are counted here from 0. Corner nodes always come first. The positions here and below follow the Node ordering section of the Gmsh 4.15.2 manual.
| Shape | Corners |
|---|---|
| Line | 0 and 1 are the ends. |
| Triangle | 0 at the origin, 1 along u, 2 along v. |
| Quadrangle | 0, 1, 2, 3 round the face; 0 to 1 runs along u, 0 to 3 along v. |
| Tetrahedron | 0 at the origin, 1 along u, 2 along v, 3 along w. |
| Hexahedron | 0, 1, 2, 3 round one face (0 to 1 along u, 0 to 3 along v); 4 to 7 are opposite them along w. |
| Prism | 0, 1, 2 form one triangle (1 along u, 2 along v); 3, 4, 5 are opposite them along w. |
| Pyramid | 0, 1, 2, 3 round the base; 4 is the apex. |
Low-order positions
Edges and faces are written as the corners that bound them.
| Types | Positions after the corners |
|---|---|
| 8 | 2: edge 0–1 |
| 26 | 2, 3: along 0 to 1 |
| 9 | 3: 0–1; 4: 1–2; 5: 2–0 |
| 20, 21 | 3, 4: 0 to 1; 5, 6: 1 to 2; 7, 8: 2 to 0; 9: centre (type 21) |
| 22, 23 | 3–5: 0 to 1; 6–8: 1 to 2; 9–11: 2 to 0; 12–14: interior (type 23) |
| 10, 16 | 4: 0–1; 5: 1–2; 6: 2–3; 7: 3–0; 8: face centre (type 10) |
| 11 | 4: 0–1; 5: 1–2; 6: 2–0; 7: 3–0; 8: 3–2; 9: 3–1 |
| 12, 17 | 8: 0–1; 9: 0–3; 10: 0–4; 11: 1–2; 12: 1–5; 13: 2–3; 14: 2–6; 15: 3–7; 16: 4–5; 17: 4–7; 18: 5–6; 19: 6–7. Type 12 only: 20: face 0-3-2-1; 21: face 0-1-5-4; 22: face 0-4-7-3; 23: face 1-2-6-5; 24: face 2-3-7-6; 25: face 4-5-6-7; 26: centre of the volume |
| 13, 18 | 6: 0–1; 7: 0–2; 8: 0–3; 9: 1–2; 10: 1–4; 11: 2–5; 12: 3–4; 13: 3–5; 14: 4–5. Type 13 only: 15: face 0-1-4-3; 16: face 0-2-5-3; 17: face 1-2-5-4 |
| 14, 19 | 5: 0–1; 6: 0–3; 7: 0–4; 8: 1–2; 9: 1–4; 10: 2–3; 11: 2–4; 12: 3–4; 13: centre of the base (type 14) |
Higher orders
Higher-order elements extend the same scheme. Nodes are listed as corners, then the nodes inside each edge, then the nodes inside each face, then the nodes inside the volume. Inside a face or volume the numbering is recursive: it follows that of a lower-order element embedded there. Nodes are assumed to be equally spaced. An edge is oriented from its lower-numbered corner to its higher, and a face so that its normal points outward, starting at its lowest-numbered corner; edges and faces are numbered following the lowest-order template that produces a single high-order node on each.
Links
Software
- Gmsh – mesh generator that defines these element types (Windows, macOS, Linux)
Developers
- Gmsh source – element classes and node numbering (C++)
Reference
- Gmsh reference manual: node ordering – diagrams of the low-order elements and the high-order rules
- GmshDefines.h, Gmsh 4.15.2 – the element type codes
- MElement.cpp, Gmsh 4.15.2 – node counts for each code