gustaf.utils.connec.hexa_to_quad#

gustaf.utils.connec.hexa_to_quad(volumes)[source]#

Computes quad faces based on following index scheme.

Hexahedron

        (6)    (7)
        *------*
        |      |
 (6) (2)| 3    |(3)   (7)    (6)
 *------*------*------*------*
 |      |      |      |      |
 | 2    | 0    | 4    | 5    |
 *------*------*------*------*
 (5) (1)|      |(0)   (4)    (5)
        | 1    |
        *------*
        (5)    (4)

face_ind | node_ind
---------|----------
0        | 1 0 3 2
1        | 0 1 5 4
2        | 1 2 6 5
3        | 2 3 7 6
4        | 3 0 4 7
5        | 4 5 6 7
Parameters:

volumes ((n, 8) np.ndarray)

Returns:

faces

Return type:

(n * 8, 4) np.ndarray