mymesh.utils.getConnectedNodes#

mymesh.utils.getConnectedNodes(NodeCoords, NodeConn, NodeNeighbors=None, BarrierNodes={})[source]#

Identifies groups of connected nodes. For a fully connected mesh, a single region will be identified

Parameters:
  • NodeCoords (list of lists) – List of nodal coordinates.

  • NodeConn (list of lists) – Nodal connectivity list.

  • NodeNeighbors (list, optional) – List of neighboring nodes for each node in NodeCoords. The default is None. If no value is provided, it will be computed with getNodeNeighbors

  • BarrierNodes (set, optional) – Set of nodes that can separate regions.

Returns:

NodeRegions – Each set in the list contains a region of connected nodes. Sorted by size of region such that the region with the most nodes is first in the list.

Return type:

list of sets