DrBwts
Mechanical
- Nov 4, 2012
- 297
I'm trying to set up a script to read field values from a set of elements in one of the instances in my assembly but I keep getting an error, the script,
from odbAccess import *
from abaqusConstants import *
from odbMaterial import *
from odbSection import *
odb = openOdb(path='point_9.odb')
lastFrame = odb.steps['Step-1'].frames[-1]
damageAll = lastFrame.fieldOutputs['DUCTCRT']
targetEls = odb.rootAssembly.instances['PART-1-1'].elementSets['TARGET']
at which point CAE throws the following error,
KeyError: TARGET
So I typed,
>>> print 'Element sets = ',odb.rootAssembly.elementSets.keys()
and got,
Element sets = ['BOUNDARY', 'TARGET']
Why am I getting his error if the element set exists?
from odbAccess import *
from abaqusConstants import *
from odbMaterial import *
from odbSection import *
odb = openOdb(path='point_9.odb')
lastFrame = odb.steps['Step-1'].frames[-1]
damageAll = lastFrame.fieldOutputs['DUCTCRT']
targetEls = odb.rootAssembly.instances['PART-1-1'].elementSets['TARGET']
at which point CAE throws the following error,
KeyError: TARGET
So I typed,
>>> print 'Element sets = ',odb.rootAssembly.elementSets.keys()
and got,
Element sets = ['BOUNDARY', 'TARGET']
Why am I getting his error if the element set exists?