Running the Macro in Batch Mode
You can run a macro in batch mode.
Batch mode for macros is run from the command line using the -batch option:
% starccm+ -batch cavity.java file.sim
This option runs Simcenter STAR-CCM+ with a script (cavity.java in the above example). The -batch option ensures that no GUI is displayed. If you do not want the server process to exit once the batch file has completed, then add the -noexit option to the command line. For example, maybe you want to connect to it to analyze results. If you wish to monitor the progress of a batch run, an additional client can access the server process interactively.
Alternatively, you can start a new simulation and run a macro in batch mode:
% starccm+ -new -batch macro.java
The following command-line arguments can be used in a batch run macro:
- Pass in property definitions (Windows or
Linux):
-jvmargs -Dmyprop=myvalue
Multiple instances of -jvmargs are permitted.
- Include System.getProperty("myprop") in the macro.