mesh.Mesh.peel#
- Mesh.peel(nodal=False)#
Remove the border elements from a Mesh.
Parameters#
- nodal: bool
If True, all elements connected to a border node are removed. The default will only remove the elements returned by
border_elems().
Returns#
- Mesh
A Mesh with the border elements removed.
Examples#
>>> M = Mesh(eltype='quad4').subdivide(4) >>> print(M.peel().compact()) Mesh: n_nodes: 9, n_elems: 4, plexitude: 4, level: 2, eltype: quad4 BBox: [0.25 0.25 0. ], [0.75 0.75 0. ] Size: [0.5 0.5 0. ] Length: 2.0 Area: 0.25 >>> M2 = M.remove_selected([0]) >>> print(M2.peel(nodal=True).n_elems()) 3