Guilin Sun
Ansys Employee

 

Unfortunately there is no script to stop the simulation except the tabs in the simulation GUI:

Quit and Save; Quit & don’t save; Force quit.

that said, no script can jump in the simulation to manipulate/interact/interrupt the simulation process.