CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Running simulations sequentially using batch file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2018, 11:00
Default Running simulations sequentially using batch file
  #1
New Member
 
Can
Join Date: Aug 2017
Posts: 12
Rep Power: 9
Lazarus is on a distinguished road
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.
Lazarus is offline   Reply With Quote

Old   October 9, 2018, 11:59
Default
  #2
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
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,
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
bluebase is offline   Reply With Quote

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

Reply

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


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. 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


All times are GMT -4. The time now is 12:47.