property TensorMesh.edge_lengths#

Return lengths of all edges in the mesh.

Calling this property will compute and return the lengths of all edges in the mesh. For structured meshes, the returned quantity is ordered x-edge lengths, then y-edge lengths, then z-edge lengths.

(n_edges) numpy.ndarray

The length of the quantity returned depends on the dimensions of the mesh:

  • 1D: returns the x-edge lengths

  • 2D: returns the x-edge and y-edge lengths in order

  • 3D: returns the x, y and z-edge lengths in order