uxarray.Grid.edge_node_connectivity

uxarray.Grid.edge_node_connectivity#

property Grid.edge_node_connectivity#

Connectivity variable representing the indices of nodes (mesh vertices) that define each edge.

Each row (i.e., each edge) contains exactly two node indices that define the start and end points of the edge. Constructed edges are stored as ascending node pairs and numbered in lexicographic order of that pair; edges read from a file keep the order and orientation they were stored in.

The result is cached after the first access; subsequent calls return the stored value without recomputing it. Computing edge_node_connectivity always derives face_edge_connectivity as part of the same pass, both numbered in the constructed edge order. A grid that already carries a face_edge_connectivity but no edge_node_connectivity therefore raises instead of renumbering the edges the stored variable refers to.

Returns:

edge_node_connectivity – An array of shape (n_edge, 2)

Return type:

xarray.DataArray