mesh.Mesh.get_nodes#
- Mesh.get_nodes()#
Return the set of unique node numbers in the Mesh.
Returns#
- int array
The sorted node numbers that are actually used in the connectivity table. For a compacted Mesh, it is equal to
np.arange(self.n_elems).
Examples#
Create a Mesh with four points and one triangle element of type ‘tri3’. So 1 point is not used.
>>> coords = Coords([[0.0, 0.0, 0.0], ... [1.0, 0.0, 0.0], ... [1.0, 1.0, 0.0], ... [0.0, 1.0, 0.0]]) >>> elems = [[0,1,3]] >>> M = Mesh(coords,elems,eltype='tri3') >>> print(M.get_nodes()) [0 1 3]