CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Running simulations sequentially using batch file

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2018, 10:00
Default Running simulations sequentially using batch file
New Member
Join Date: Aug 2017
Posts: 12
Rep Power: 8
Lazarus is on a distinguished road

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:\..\"
start /d "C:\.." starccm+.exe -load -np 8 "C:\..\second_case.sim" -batch "C:\..\"
start /d "C:\.." starccm+.exe -load -np 8 "C:\..\third_case.sim" -batch "C:\..\"

Thanks in advance.
Lazarus is offline   Reply With Quote

Old   October 9, 2018, 10:59
Senior Member
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 566
Rep Power: 20
bluebase will become famous soon enough
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,

@echo off
"C:\..\starccm+.exe" -load -np 8 "C:\..\first_case.sim" -batch "C:\..\" > first_case.sim.log 2>&1
"C:\..\starccm+.exe" -load -np 8 "C:\..\second_case.sim" -batch "C:\..\" > second_case.sim.log 2>&1
"C:\..\starccm+.exe" -load -np 8 "C:\..\third_case.sim" -batch "C:\..\" > third_case.sim.log 2>&1
bluebase is offline   Reply With Quote

Old   October 19, 2018, 15:15
Senior Member
Join Date: Mar 2009
Posts: 260
Rep Power: 18
Maddin is on a distinguished road
I use the file.
Maddin is offline   Reply With Quote


batch mode, batch runs, batch simulations, batch unsteady runcase, sequential

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam "Permission denied" and "command not found" problems. OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 09:07
[] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44

All times are GMT -4. The time now is 22:28.