Recovering from Crashes

oSP3D stores an autosave script in the paths mentioned in the previous topic. The file, autosave.ssc, contains all script commands that were executed successfully. To recover from a crash, you can restore your work:

  1. Copy the file autosave.ssc to a new location.

  2. Restore the session by running this new script file when starting oSP3D.

A likely error while re-executing the autosave script is that certain output files did not exist in the first run, but in the second run, oSP3D indicates that it cannot replace them. In such a case, you have two options:

  • Delete the output files before re-executing the script

  • Modify the Lua script. In the respective settings classes, change the behavior of creating output files using:

    settings.replace_files = true;

For more information, see the oSP3D API documentation on the Ansys API Documentation site.