mymesh.utils.getNodeNeighbors#
- mymesh.utils.getNodeNeighbors(NodeCoords, NodeConn, ElemType='auto')[source]#
Determines the adjacent nodes for each node in the mesh
- Parameters:
NodeCoords (array_like) – List of nodal coordinates.
NodeConn (array_like) – Nodal connectivity list.
ElemType (str, optional) – Type of element contained in the mesh, by default ‘auto’. See converter.solid2edges() for details. ‘auto’ is suitable for most element types and mixed-element meshes, 4-node elements are assumed to be tets, not quads, unless ElemType is set to ‘quad’ or ‘surf’.
- Returns:
NodeNeighbors – List of neighboring nodes for each node in NodeCoords.
- Return type:
list