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

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.