Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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.

Status
Not open for further replies.

preetham_alluri

Mechanical
Jun 13, 2018
1
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
 
Replies continue below

Recommended for you

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