Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

script error:TypeError: unsupported operand type(s) for -: 'OdbFrame' and 'int'

Status
Not open for further replies.

roya22

Mechanical
Aug 9, 2017
11
0
0
US
Hi everybody,

I'm new in abaqus scripting and trying to extract data from odb. I wrote the simple script but it does not work with this error:

TypeError: unsupported operand type(s) for -: 'OdbFrame' and 'int'

Here is my script:


from abaqus import*
from odbAccess import*

Node=113436
nodevector=range(1,Node,1)

R=open('Termal Results','w')

odb=openOdb(path='half-initial1400.odb')
step=odb.steps[Step-12]

cont3=0
for element in nodevector:
region=step.historyRegions['Node half model-initial1400.'+str(B[0][:])]
variable=region.historyOutputs['NT11'].data
for time,data in variable[1 :]:
R.write(data)
R.write('\n')
cont3=cont3+1

R.close()

Do you know what is wrong with it?
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top