mesh.Mesh.border_mesh#

Mesh.border_mesh(compact=True)#

Return a Mesh representing the border.

Parameters#

compact: bool

If True (default), the returned Mesh will be compacted. If False, the returned Mesh will contain all the nodes present in the input Mesh.

Returns#

Mesh

A Mesh containing the border of the input Mesh. The level of the Mesh is one less than that of the input Mesh. If the input Mesh has property numbers, the border elements inherit the property of the element to which they belong.

Notes#

This is a convenient shorthand for

self.get_free_entities_mesh(level=-1,compact=compact)

Examples#

>>> M = Mesh(eltype='quad4')
>>> print(M.border_mesh())
Mesh: n_nodes: 4, n_elems: 4, plexitude: 2, level: 1, eltype: line2
  BBox: [0. 0. 0.], [1. 1. 0.]
  Size: [1. 1. 0.]
  Length: 4.0