
Philip Dai
Jan 61 min read
Sorting nodes from a Node Set
Asked Copilot " abaqus python sort node list based on x coordinate " Got a number of answers, actually quite useful i.e., this process tends to eliminate the need to read Abaqus manual. This is one of the useful answers that easy to adopt. p = mdb.models['Model-1'].parts['Part-1'] nset = p.nodeSets['MY_SET'] # or getSetFromNodeLabels, etc. # create a list of nodes objects sorted by X coordinates nodes_sorted = sorted(nset.nodes, key=lambda n: n.coordinates[0]) labels_sorted











