The easiest way to define files to be deleted after each simulation run is to define File Operations in the Stage dialogs File Operations tab:
Another option to specify files to be deleted is to provide a file named clean (Linux) and clean.bat (Windows), respectively, containing the required erase statements such as:
|
|
The clean file will be executed immediately after each simulation and will clean all the run directories except the baseline (first or 1.1) and the optimum (last) runs. Care should be taken not to delete the lowest level directories or the log files prepro, started, replace, finished, response.n or history.n (which must remain in the lowest level directories).These directories and log files indicate different levels of completion status which are essential for effective restarting. Each file response.response_number contains the extracted value for the response: response_number. E.g., the file response.2 contains the extracted value of response 2. The essential data is thus preserved even if all solver data files are deleted. The response_number starts from 0. Complete histories are similarly kept in history.history_number.
The minimal list to ensure proper restarting is:
Remarks:
The LS-OPT GUI allows this to be set inside LS-DYNA Advanced Option :