|
[Sponsors] |
March 3, 2019, 05:53 |
how to pause a batch mode
|
#1 |
New Member
Siavash
Join Date: Nov 2013
Posts: 20
Rep Power: 12 |
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 |
|
March 3, 2019, 10:53 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
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. |
|
March 3, 2019, 17:22 |
|
#3 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running Ansys in BAtch Mode | kuleuvenstudent | ANSYS | 1 | October 18, 2017 12:11 |
[PyFoam] Problems with the new PyFoam release | zfaraday | OpenFOAM Community Contributions | 13 | December 9, 2014 18:58 |
[PyFoam] having problems with pyfoam Installation | vitorspadetoventurin | OpenFOAM Community Contributions | 3 | December 2, 2014 07:18 |
[ICEM] ICEM CFD error when running in batch mode | bgp723 | ANSYS Meshing & Geometry | 0 | August 14, 2014 13:45 |
to run a replayfile in batch mode from UNIX | froztbear | ANSYS Meshing & Geometry | 4 | May 13, 2014 08:00 |