2.3. Automatically run scripts directly before or after processing

  1. Ensure that the script you want to automatically apply either directly before and/or after your simulation is processed is listed on the Project scripts tab of the PrePost Script panel.

  2. From the Data panel, expand the Solver entity, and then click PrePost Scripts.

  3. From the Data Editors panel, do the following:

    • In the Run before simulation box, enable the scripts you want to automatically run directly before the simulation is processed.

    • In the Run after simulation box, enable the scripts you want to automatically run directly after the simulation is processed.

    Figure 2.2: PrePost Scripts Data Editors tab

    PrePost Scripts Data Editors tab



Tip:  Gain hands-on experience with creating and using scripts by following Tutorial 02 - Static Angle of Repose Test. Part B of this tutorial shows how a python script can be used to automate the actions inside Rocky, in this case, the Angle of Repose calculations.