preetham_alluri
Mechanical
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
>>> 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