Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding displacements of all the nodes of a NodeSet in ABAQUS. 1

Status
Not open for further replies.

preetham_alluri

Mechanical
Joined
Jun 13, 2018
Messages
2
Location
KR
Hello Everyone, I hope everyone is doing fine. I am working on python Scripting in ABAQUS. I wanted to know the displacements of all the nodes pertaining to just a particular nodeset(PU-NODES-FATIGUE). I try to access it by writing the following code but encounter an error saying "keyError : PU-NODES-FATIGUE". I tried to even chane the name to different set so as to check the output but it is still the same error. It would be very greatful if anyone can throw some light on this. Thank you in advance. The code is

>>> print 'Node sets = ',odb.rootAssembly.nodeSets.keys()
O/P Node sets = [' ALL NODES', 'BC-PU-SYM-Z', 'PU-NODES-FATIGUE', 'SET-8']
>>> fatigue = odb.rootAssembly.instances['PU-1'].nodeSets['PU-NODES-FATIGUE']
KeyError: PU-NODES-FATIGUE
 
Hi.

Sometimes problems like this are caused by "broken" (lazy) implementation of particular collection class by DS.

Try nodeSets.Item("...") or you will have to iterate through all nodes accessing them by index, starting with 1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top