I have been trying to use the python command line below in for loop to extract stress for all elements at all frames, but it takes hours even for the normal size model. I have no more than 30,000 elements. Because it calls the same field object every single time again which is slow and probably takes 1-2 seconds everytime.

Stress=myOdb.steps[stepName].frames[fr].fieldOutputs['S'].getSubset(region=myInstance.elements[el],position=CENTROID, elementType='C3D8H').values

I will be checking each element, through various time frames for the calculation I want to perform. But just the data extraction is taking hours. And then calculations are just few minutes only.

Is there a better way to extract all stress values on all elements at all frames quicker? I know there should be a way because Abaqus/Viewer or Hyperworks don't take hours to plot the same Odb file. It takes just a few seconds and then I can probe each element or node very quickly and also run animations with contours.

So is there a better way to extract data faster?

Similar questions and discussions