|
[Sponsors] |
Running simulations sequentially using batch file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 9, 2018, 11:00 |
Running simulations sequentially using batch file
|
#1 |
New Member
Can
Join Date: Aug 2017
Posts: 12
Rep Power: 9 |
Hi,
I have several simulations to be run by Star-CCM+. I'd like to perform the subsequent simulation automatically after the previous one has finished. May I ask how can i do that in a batch file? I have created the batch file as the following, but this time all cases run simultaneously. However, as i said, I'd like to run these .sim files sequentially. @echo off start /d "C:\.." starccm+.exe -load -np 8 "C:\..\first_case.sim" -batch "C:\..\run.java" start /d "C:\.." starccm+.exe -load -np 8 "C:\..\second_case.sim" -batch "C:\..\run.java" start /d "C:\.." starccm+.exe -load -np 8 "C:\..\third_case.sim" -batch "C:\..\run.java" pause Thanks in advance. |
|
October 9, 2018, 11:59 |
|
#2 |
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21 |
Hi Lazarus,
don't use the startprogram to run starccm (unless explicitely wanted). Instead, call starccm+.exe directly. You probably should do a quick websearch to find out more about batch syntax and the program start. Moreover, you might want to redirect the output to some file. Best regards, Sebastian Code:
@echo off "C:\..\starccm+.exe" -load -np 8 "C:\..\first_case.sim" -batch "C:\..\run.java" > first_case.sim.log 2>&1 "C:\..\starccm+.exe" -load -np 8 "C:\..\second_case.sim" -batch "C:\..\run.java" > second_case.sim.log 2>&1 "C:\..\starccm+.exe" -load -np 8 "C:\..\third_case.sim" -batch "C:\..\run.java" > third_case.sim.log 2>&1 pause |
|
October 19, 2018, 16:15 |
|
#3 |
Senior Member
Join Date: Mar 2009
Posts: 260
Rep Power: 18 |
I use the run.java file.
|
|
Tags |
batch mode, batch runs, batch simulations, batch unsteady runcase, sequential |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 18:25 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |