Accelerate a slow loop in Abaqus-python code for extracting strain data from .odb file
问题 I have a .odb file, named plate2.odb, that I want to extract the strain data from. To do this I built the simple code below that loops through the field output E (strain) for each element and saves it to a list. from odbAccess import openOdb import pickle as pickle # import database odbname = 'plate2' path = './' myodbpath = path + odbname + '.odb' odb = openOdb(myodbpath) # load the strain values into a list E = [] for i in range(1000): E.append(odb.steps['Step-1'].frames[0].fieldOutputs['E'