roya22
Mechanical
- Aug 9, 2017
- 11
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?
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?