mymesh.utils.RemoveNodes#
- mymesh.utils.RemoveNodes(NodeCoords, NodeConn)[source]#
Removes nodes that aren’t held by any element
- Parameters:
NodeCoords (array_like) – Node coordinates
NodeConn (array_like) – Node connectivity
- Returns:
NewNodeCoords (array_like) – New set of node coordinates where unused nodes have been removed
NewNodeConn (array_like) – Renumbered set of node connectivities to be consistent with NewNodeCoords
OriginalIds (np.ndarray) – The indices the original IDs of the nodes still in the mesh. This can be used to remove entries in associated node data (ex. new_data = old_data[OriginalIds]).