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 TugboatEng on being selected by the Eng-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
Joined
Aug 9, 2017
Messages
11
Location
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?
 
> region=step.historyRegions['Node half model-initial1400.'+str(B[0][:])]

Where is B defined?
 
You are right. many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top