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 automatically run multiple cases in batch mode (https://www.cfd-online.com/Forums/star-ccm/202860-how-automatically-run-multiple-cases-batch-mode.html)

breezeyu June 10, 2018 05:44

how to automatically run multiple cases in batch mode
 
Hi everyone,

I want to use batch mode to automatically run the simulation under the folder.
The problem is whether CCM can call each *.sim file automatically,and whether or not need to define a path.

Which command line to use?

1、starccm+ -batch batchrun.java -np 24 filename.sim;
2、starccm+ -batch batchrun.java -np 24 ;and the The file path point to the filename.sim

tisa June 11, 2018 06:45

Hello,

the command starccm+ is started in the directory you are in with the shell. So if the simulation is in the same directory, you dont need a path. If it's anywhere else, you need a path.

starccm+ -np 4 -batch yourJavaFile.java yourSimFile.sim (shell same directory as sim file)
starccm+ -np 4 -batch yourJavaFile.java pathToTheFile/yourSimFile.sim (shell not in the same directory)


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