Ansys Learning Forum › Forums › Discuss Simulation › LS Dyna › Location of results when using python or cmd to call ls-run to calculate k files › Reply To: Location of results when using python or cmd to call ls-run to calculate k files
December 18, 2024 at 12:13 am
Reno Genest
Ansys Employee
Hello,
The timeout may throw an error message. You may want to catch the error with try: and except: as in the code block in my previous post:
try:
   subprocess.run([...], timeout=3000)
except:
    print("Run time exceeded. Go to the next run.")
Â
Let me know how it goes.
Â
Reno.