mesh.Mesh.node_connections#

Mesh.node_connections()#

Find and store the elems connected to nodes.

Returns#

2-dim int numpy.ndarray

Array specifying the element(s) to which each node belongs. Only the nonnegative values are relevant. Negative values are flagging a non-existent element. This allows for rows with different number of entries.

Examples#

>>> M = Mesh(eltype='quad4').subdivide(2,2)
>>> print(M.node_connections())
[[-1 -1 -1  0]
 [-1 -1  0  1]
 [-1 -1 -1  1]
 [-1 -1  0  2]
 [ 0  1  2  3]
 [-1 -1  1  3]
 [-1 -1 -1  2]
 [-1 -1  2  3]
 [-1 -1 -1  3]]