Scalable structural analysis through automated APDL scripting and Python integration
Naziri, Ali (2025)
Diplomityö
Naziri, Ali
2025
School of Energy Systems, Konetekniikka
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi-fe2025051341764
https://urn.fi/URN:NBN:fi-fe2025051341764
Tiivistelmä
With the increasing need to streamline calculation and simulation processes, and recognizing that graphical user interfaces (GUI)—while user-friendly—are inefficient for handling large database models and are susceptible to human error, this thesis demonstrates a completely automated approach to calculate the stresses caused by displacement applied at one end of the geometry via FE (Finite Element) method using ANSYS Parametric Design Language (APDL), in combination with Python. A three-dimensional mechanical part is modeled with fixed boundary conditions on one end and displacement applied on the other. The simulation setup is validated through comparison with classical hand calculations to ensure physical accuracy and reliability. Python is then used to generate a large number of simulation scenarios with randomized displacement values. The solver generates result files, and von Mises stress data are taken from those files after each case runs in batch mode within ANSYS. The approach improves efficiency, maintains consistency, and allows for scaled high-volume structural simulations without relying on graphical user interfaces.