How to get all nodes from an edge?
2015-01-29 22:22:59 GMT
I'm new at Abaqus scripting and I need to find all nodes along the upper edge (I'm using a 2D rectangle) and put each one in a node set.
I tried to use the labels, but they have a strange order and I need to pick them from the first node of the right side until the last one. It works, but I don't know to sort them and I think it would be better to pick it using the coordenates, but I don't know how to do this in my case.
Here is a pie of my code where I acess the nodes using the labels
#acess the nodes
a = mdb.models[model_name].parts['part_name'].nodes
#first node label from the right side of the upper edge
nodeLabel1 = 
#second node label from the right side of the upper edge
nodeLabel2 = 
nodes1 = a.sequenceFromLabels(nodeLabel1)
nodes2 = a.sequenceFromLabels(nodeLabel2)
#create the sets to each single node
|Reply via web post||•||Reply to sender||•||Reply to group||•||Start a New Topic||•||Messages in this topic (1)|
Post message: Abaqus <at> yahoogroups.com
Subscribe: Abaqus-subscribe <at> yahoogroups.com
Unsubscribe: Abaqus-unsubscribe <at> yahoogroups.com
List owner: Abaqus-owner <at> yahoogroups.com
Shortcut URL to this page: