CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   how to pause a batch mode (https://www.cfd-online.com/Forums/star-ccm/215369-how-pause-batch-mode.html)

Skabirian March 3, 2019 05:53

how to pause a batch mode
 
Hi
I'm running multiple simulations in batch mode.
how can I pause it temporary and continue again for example one hour later?
as you know the batch run can't be modified during the run.
Regards

me3840 March 3, 2019 10:53

You would need to write a java macro to save and close the simulation after a period of time.


Then you would have to have a shell script which relaunches STAR after a period of time.

bluebase March 3, 2019 17:22

Hi Siavash,


the solution depends on what exactly you want to achieve.



You could for example use -server instead of the -batch command line option to run your macros. That way, you could interact with your simulations while they are running, and pause them, without closing down the program. However, you macro would need to be able to close the simulation on its own, when you don't want to do this manually for all your simulations.



Read the manual to understand the difference between -batch, -server, (and -macro).


Of course, your java macro could have some logic implemented to run (or pause) under certain conditions. See for example, the stop file stopping criterion. It's only satisfied if you have a file present in the specified directory under the specified name.
It would be possible that you create a logic in java which would consider similar parameter, wouldn't it? e.g. a pause file.



Best regards,
Sebastian


All times are GMT -4. The time now is 05:25.