mesh.Mesh.edge_connections#

Mesh.edge_connections()#

Find and store the elems connected to edges.

Returns#

2-dim int numpy.ndarray

Array specifying the element(s) to which each edge 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,1)
>>> print(M.edge_connections())
[[-1  0]
 [-1  0]
 [-1  1]
 [ 0  1]
 [-1  1]
 [-1  0]
 [-1  1]]