Article abstract
This article will introduce the efficient way to use Abaqus python script to access Abaqus odb field outputs. The considerations for Abaqus python scripting are given. A comparison of several unpacking styles to access odb outputs is made. The demonstration code is provided in Github.
Considerations for Abaqus python performance
Provide which code, which version, and also which interface are used for the solution.
Comparison of unpacking sytels
Below describe the detailed step by step procedure you followed to solve the problem. It is better to also accompany this document with a youtube video.
# Least efficient
for i in range(len(myStress.values))
myStress.valuesi.data
# Moderate efficient tmpStressValues = myStress.values for i in range(len(tmpStressValues)): tmpStressValuesi.data
# Most efficient for value in (myStress.values): value.data
References
- ref 1
- ref 2