mesh.Mesh.edge_mesh#
- Mesh.edge_mesh()#
Return a Mesh consisting of the unique edges of the elements.
Returns#
MeshA Mesh whose elements are the unique edges defined by the nodes of the original Mesh.
Notes#
This can only be used with a Mesh of level >= 1.
Examples#
>>> M = Mesh(eltype='quad4').subdivide(2,1).edge_mesh() >>> print(M.report(full=True)) Mesh: n_nodes: 6, n_elems: 7, plexitude: 2, level: 1, eltype: line2 BBox: [0. 0. 0.], [1. 1. 0.] Size: [1. 1. 0.] Length: 5.0 Coords: [[0. 0. 0. ] [0.5 0. 0. ] [1. 0. 0. ] [0. 1. 0. ] [0.5 1. 0. ] [1. 1. 0. ]] Elems: [[0 1] [3 0] [1 2] [1 4] [2 5] [4 3] [5 4]]