# 94 Abaqus Tutorial# How to get the average stress of all elements
How to get the average stress of all elements
from odbAccess import *
odb = openOdb(path='job-2.odb')
fixSet = odb.rootAssembly.instances['PART-1-1'].elementSets['SET-200']
list_mises = []
for step in odb.steps.values():
for frame in step.frames :
sum=0
totalTime = 0
frameTime = frame.frameValue+totalTime
field=frame.fieldOutputs['S']
subField = field.getSubset(region=fixSet)
length= len(subField.values)
for val in subField.values :
sum = sum + val.mises
ave = sum / length
list_mises.append(ave)
print(list_mises[-1])
print('ok')
Пікірлер: 4
Can you show me the way to convert Stress and Displacement chart into Moment and Rotation Angle chart in Abaqus ? Thank you so much !
Hi it will only take the set that is in part instance.