Command-Line Reference

The starccm+ command can start either the Simcenter STAR-CCM+ client:

starccm+ [options] [simulation]

or server process:

starccm+ -server [options] [simulation]

Without any arguments, the Simcenter STAR-CCM+ GUI client is started. No server process is started, as that is only required when a simulation is created or loaded.

If a simulation file is named without any options, both the Simcenter STAR-CCM+ client and a server are started, and the named file is loaded into the server.

If the -server argument is specified, only the Simcenter STAR-CCM+ server process is started. Any server option can also be specified on the command-line to start the client; the client passes those options on when it starts the server process.

General Options

Argument Description
-info

Prints information about the simulation file: the version of Simcenter STAR-CCM+ with which that file was saved (in this example 19.04.###), number of partitions, file size, and number of iterations in the file:

STAR-CCM+ 19.04.### (linux-x86_64-2.5/gnu4.6) Serial 680.34 KB  Iter 66
-ini <file>

Activates an .ini file that contains general and client options.

-loc

For the client, this option turns off broadcasting of queries to locate servers on the network; it also prevents the server from responding to any locator queries. The broadcast from the client is a UDP multicast, along with TCP pings, to known hosts. This multicast search is started by default when you launch the Simcenter STAR-CCM+ client without a simulation file. In Windows this option can cause network access warnings from your personal firewall.

-new

Launches the Simcenter STAR-CCM+ workspace and starts a new simulation without accessing a simulation file.

-printpids

Prints process IDs. An example of the output format is as follows:

Host ID 0 Rank 0 on marlin32 with process ID 7270
Host ID 0 Rank 1 on marlin32 with process ID 7422
Host ID 0 Rank 2 on marlin32 with process ID 7591
-v, -vv, -vvv

Activates Verbose mode, prints environment changes and sub-commands.

-version
Prints the Simcenter STAR-CCM+ version information (in this example 19.04.###):
19.04.###
-help Prints information about the command-line options.
-phelp[:<option>] Prints information about the specified command-line option.

License Options

Argument Description
-lite

Requests a Lite Session license as opposed to a full license. Only a reduced functionality set is available.

-power

Starts Simcenter STAR-CCM+ with the Power Session license feature.

-doepower

Uses a Power Session license for the optimization session license.

-nosuite

Prevents main licenses from being used to enable cores for parallel computation. Only parallel licenses are used to enable cores for parallel computation.

-powerpre

Uses 10 DOEtoken licenses to launch a Simcenter STAR-CCM+ pre- and post-processing session.

-tokensonly

Specifies to only use DOEtoken licenses for optimization studies. With this option, you can also use DOEtoken licenses for regular parallel runs in Simcenter STAR-CCM+.

-notokens

Specifies to not use DOEtoken licenses for optimization studies.

-doe-prefer-hpcdomains

Changes the order in which the DOEtoken license feature is checked out. Using this option checks out the hpcdomains license feature before the DOEtoken license feature for optimization studies.

-podkey <value>

Specifies a Power on Demand license key.

-doeuuid <value>

Specifies a DOE UUID (universal unique identifier).

-licpath <path:...>

Specifies a license path that overrides the default license path. When this option is used, Simcenter STAR-CCM+ uses the path to define a new CDLMD_LICENSE_FILE environment variable for the spawned server session.

-reserve <lic1[,lic2,...]>

Allows you to specify add-on licenses that can be automatically checked out.

-noreserve

Prevents add-on licenses from being checked out unless a model operation requires them.

-noretry

Prevents add-on licenses from being retried when a significant operation is carried out.

-norelease

Prevents add-on licenses from being released after importing geometry.

-readonly Allows you to view a simulation without consuming a Simcenter STAR-CCM+ license. However, the license manager must be detected during launch.

Client Options

Argument Description
-batch [command]

Starts Simcenter STAR-CCM+ in batch mode (without a GUI). The following additional commands are available:

  • mesh — runs the meshing pipeline
  • run — runs the solver until the stopping criteria are satisfied
  • step — steps the solution
  • <macro>.java — runs the specified Java macro file

If no command is specified, the default action is to run the solver. In each case, the simulation is auto-saved through the auto save feature (unless that property is turned off).

When applying simulation operations, if a chain of simulation operations is set active, the - batch without any [command] executes the operations in batch mode. If no chain of simulation operations is active, - batch steps the simulation by ignoring the simulation operations. However, once an additional command is included, the batch execution does NOT include simulation operations, no matter there is an active chain or not.

You can specify multiple commands within the -batch argument. In the following example, three macros are run in order before running the mesh pipeline and the solver:

-batch macro1.java,macro2.java,macro3.java,mesh,run
-batch-report

Generates a summary report of a batch simulation. The report appears in .html format. This report includes details about the computer system where the simulation was run, as well as details about the simulation itself.

-classpath <classpath>

Overrides the User macro classpath setting from the Options dialog. This option only affects the macro compilation in the current session of Simcenter STAR-CCM+.

-clientldlibpath <path>:<path>:<path>

This option permits you to add directory paths explicitly to the Simcenter STAR-CCM+ client library search path (LD_LIBRARY_PATH) for the client runtime environment.

-config <id>

Accesses a saved configuration of server options. (These options are also listed in the Saved Configurations list of the dialog that loads a simulation or creates a new one.)

-save-config <id>

Saves a configuration of server options and adds it to the Saved Configurations list of the dialog that loads a simulation or creates a new one.

-fontsize <size>

Adjusts the size of the font that is used in the Simcenter STAR-CCM+ client workspace, such as dialogs and the object tree, for that session. Add the desired font size with this command.

For example, a command of starccm+ -fontsize 16 sets the font size to 16 points.

-host <host> -port <port>

Specifies the host and port of a running Simcenter STAR-CCM+ server process to which the client connects. If the -host and -port options are used, a simulation file cannot be specified.

-locale <locale>

Overrides the default locale of your operating system. You can run Simcenter STAR-CCM+ in the following languages:

  • English US: en:US
  • Japanese: ja
  • Chinese (simplified): zh
  • Korean: ko
  • Russian: ru:RU
-macro <file>

Runs the macro file upon client startup. This option is similar to -batch in that a macro file is read, but in this case a GUI is opened. This option requires specification of a simulation file. Since it is impossible to record a macro that includes the opening of a simulation file, there is never a conflict.

-nbuserdir <dir>

Lets you specify a location, other than $HOME, in which the .star-*-*-* directory is written. Enter this command after client startup.

This option changes the location of key Simcenter STAR-CCM+ information, including the user settings directory and client log messages. Consider using this option when you do not have write access to your $HOME directory, or when you want to share modules.

-noexit

Prevents the server process from shutting down after batch file execution has completed. By default, the client and server processes both shut down after the macro completes.

-on <host>

Specifies the hostmachine on which to start the server process. By default, when a new simulation is created or an existing simulation file is opened, the Simcenter STAR-CCM+ client starts a server process on the local machine. If the -on option is specified however, the client attempts to start the server process on the named host machine using the appropriate remote shell.

Additionally, this option can be used directly as a parallel option to specify the hosts that the parallel server uses.

-param <global parameter name> <value>

Specifies the value of a global parameter that already exists in the target simulation. You can set scalar and vector parameter values using either fixed values or expressions, and can also set file paths for file parameters. Multiple instances are allowed.

If either argument (name or value) contains spaces or reserved characters such as '$', surround the argument in quotes, either single or double, depending on the command shell and your objective.

Examples
starccm+ -param MaxTime 10.0 demo.sim
starccm+ -param MinWidth 2cm demo.sim
starccm+ -param Sample [0.1,0.2,0.15] demo.sim
starccm+ -param MaxTime 10.0 -param MinWidth 2cm demo.sim
Linux Quoted Example
starccm+ -param MaxWidth '$MinWidth * 2' demo.sim
Windows Quoted Example
starccm+ -param MaxWidth "$MinWidth * 2" demo.sim

To set a file parameter for a specific simulation:

-param <file parameter name> <path to file> <path to simulation>

When you enclose the <path to file> in quotes, the path can use separators of either type (forward slash or back slash). Without quotes, the <path to file> must use forward slash separators for Linux, and back slash separators for Windows.

Example
starccm+ -param demoparameter demofile.txt demo.sim
-reset

Restores the default client layout (including window positions) and settings (options and mounted directories).

-time

Prints server-elapsed and CPU times after a batch run. Specifically, it prints a summary of computational resource use of the server on close-down.

In serial:

Saving: /home/ncr/sims/suprBump@00077.sim
Server Elapsed Time :          5.362  (s)
Server CPU Time     :          0.830  (s)
Closing connection to server and exiting

In parallel:

Auto save: /home/ncr/sims/suprBump@00077.sim
Saving: /home/ncr/sims/suprBump@00077.sim
|Global Rank|Server Elapsed Time (s)|Server CPU Time (s)|MPI Overhead (s)|MPI Overhead %Elapsed Time (s)|
|          0|                  7.120|              1.250|           0.461|                         6.476|
|          1|                  7.120|              5.150|           2.371|                        33.302|
|          2|                  7.120|              5.120|           2.425|                        34.056|
|          3|                  7.120|              5.160|           2.451|                        34.421|
Maximum worker communication time on rank     : 3
Minimum worker communication time on rank     : 0
Average worker communication time             : 1.927
Standard deviation worker communication times : 0.847
Closing connection to server and exiting
-userdir <name>

On Linux, adds a user settings directory to your home directory with name optionally added to the folder name.

-nbuserdir <name>

On Linux, specifies the NetBeans directory.

-clientcore

On Linux, reserves one core for running the client in a batch system. Use this flag if you perform a lot of post-processing while running in parallel.

-clientldpreload <file:...>

On Linux, sets the client LD_PRELOAD environment variable.

Server Options

Argument Description
-arch <architecture>

This option allows you to override the automatic determination of the architecture of the machine. The specified architecture must exist within the installation and must be compatible with the machine architecture. If these conditions are not met, Simcenter STAR-CCM+ exits, or runtime errors occur.

For example, this argument can work when a 32-bit Linux installation is executed on a 64-bit Opteron-based architecture:

-arch linux-x86-2.2.5
-batchsystem <system>

This option can be used to aid the startup of parallel Simcenter STAR-CCM+ under the control of a supported Batch Management System (for usage see Using Batch Management Systems).

Currently the supported systems are:

  • PBS (<system>=pbs): Open PBS, PBS Pro, Torque
  • SLURM (<system>=slurm)
  • Grid Engine (<system>=ge): Sun/Open Grid Engine and variants
  • LSF (<system>=lsf)

Process distribution follows the same logic as for -machinefile. Implies parallel execution. Cannot be used with -machinefile or -on.

-collab

In the startup of a server, allows others to connect to it. (By default only the user who starts a Simcenter STAR-CCM+ server is allowed to connect to it.)

-cout

Messages are directed to the console rather than to the Simcenter STAR-CCM+ client.

-jobmanager <URL> Specifies the URL of the Resource Manager that controls the resources for the Simcenter STAR-CCM+ server. The Resource Manager automatically adds this option to the server.
-ldlibpath <path>:<path>:<path>

This option permits you to add directory paths explicitly to the Simcenter STAR-CCM+ server library search path (LD_LIBRARY_PATH) for the server runtime environment.

The -ldlibpath option is required when Simcenter STAR-CCM+ relies upon third-party software that is installed in custom locations. In addition, consider using it for user code in the following instances:

  • Linking against a math library like IMSL or NAG. (Getting access to the functions in them is one reason to write user code.)
  • Most compilers that can build a .so file dynamically link it against their own runtime libraries. Add paths to these libraries, unless they happen to be the system libraries (as they are with GNU compilers on Linux).
-load

Loads the specified simulation file as soon as the server starts. Without this option, the simulation database is loaded on demand when the client connects to the server.

-msjob[:<opt>]

Submits a cluster job to the Windows Server job scheduler. This functionality is available only on Windows Server 2012 machines.

-noconnect In the startup of a server, specifies a session that is exclusive to the Simcenter STAR-CCM+ console session that launched it. No other users can connect to that server.
-port <port>

Specifies server port for Simcenter STAR-CCM+ to open.

-portrange <range>

Specifies the number of ports the server can attempt to bind to.

-server

Starts the Simcenter STAR-CCM+ server with an automatically generated port number.

  • -rsh <option>
  • -svrrsh <option>
The -rsh <option> option can be used to specify:
  • the remote shell used to start remote servers from the client
  • the remote shell used in the server to launch parallel processes, co-simulations, and so on.
The -svrrsh <option> specifies the server's remote shell only.

When starting a server using -server, the -rsh or -svrrsh options default to ssh.

In a new client session the remote shell settings default to those set by the environment options, Generic Remote Process Launch Command and the Server Remote Process Launch Command.

-taskid <pid> Specifies the task ID of the Resource Manager that controls the resources for the server. The Resource Manager automatically adds this option to the server.
-ldpreload <file:...> On Linux, for the server, sets the shared libraries list to LD_PRELOAD.

Visualization Options

Argument Description
-graphics <option> For the Simcenter STAR-CCM+ client and Simcenter STAR-CCM+ Viewer, uses one of the following options:
  • auto – (default) prefers supported native OpenGL over Mesa OpenGL; this option has the same effect as not using any -graphics option.
  • native – enforces native OpenGL
  • mesa – enforces Mesa OpenGL; uses the legacy Mesa graphics driver LLVMpipe.
  • mesa_swr – enforces the OpenSWR Mesa driver which gives better performance than the legacy option. This option requires AVX CPU instruction set support (all CPUs released after 2012 support this instruction set).
-rgpu <option>

Leverages multiple GPUs on a Linux system for local interactive or batch sessions, or for rendering on a remote server. The options are:

  • N – selects a specific GPU in the system to use, for example -rgpu 1 or -rgpu 5.
  • auto – cycles through all available GPUs on the system on a file in $TEMP.

-agpu is the equivalent argument for ad hoc rendering. For details about this type of rendering, see Additional Information on Remote Rendering.

For more information see Working with Multiple GPUs (Linux Only).

-rgraphics For the Simcenter STAR-CCM+ server (remote rendering), uses one of the following options:
  • auto – (default) prefers supported native OpenGL over Mesa OpenGL; this option has the same effect as not using any -rgraphics option.
  • egl – enforces native OpenGL on EGL (Linux only)
  • native – enforces native OpenGL
  • mesa – enforces Mesa OpenGL; uses the legacy Mesa graphics driver LLVMpipe.
  • mesa_swr – enforces the OpenSWR Mesa driver which gives better performance than the legacy option. This option requires AVX CPU instruction set support (all CPUs released after 2012 support this instruction set).

-agraphics is the equivalent argument for ad hoc rendering. For details about this type of rendering, see Additional Information on Remote Rendering.

-rthreads N

Client option. Sets the number of threads N available for visualization tasks, including advanced rendering. When using this setting, consider the following:

  • If you specify a high value for render threads, you can incur resource contentions that interfere with the proper functioning of your computer.
  • Increasing render threads is expected to scale performance linearly. However, linear scaling can fail with high thread counts on hyper-threaded or multi-CPU systems, although performance can still increase. Complexity of the scene can also impact performance and prevent scaling.
  • The value specified with the -rthreads command line option takes precedence over the corresponding setting that is available through Tools > Options.
  • Cannot be used in conjunction with the -batchsystem option. If it is, then -rthreads defaults to a value of 1. If you attempt to specify a -rthreads value greater than 1 when using -batchsystem, Simcenter STAR-CCM+ generates a warning message.
-rr server Client option that tells the server to launch a renderer on its machine for the client.
-rr hostname:port

Client option that tells the server to launch a renderer on a specified host:

  • The argument hostname:port tells the server to use a renderer that was previously launched on some other machine (launched using starrenderer).
-rr hostname

Client option that tells the server to launch a temporary renderer on a specific host:

-rrthreads N

Server option which controls the number of threads N used by the rendering processes that can be spawned by the server for clients connecting with -rr. If Simcenter STAR-CCM+ is started with -rr -rrthreads N then the (batch) client uses remote rendering and the server that is launched uses N threads for remote rendering

-arthreads is the equivalent argument for ad hoc rendering. See Additional Information on Remote Rendering.

Parallel Options

Argument Description
-benchmark

Assesses performance capabilities of your hardware. For detailed information about options, use -benchmarkhelp. For more information about benchmarking, see Performance Benchmarks.

-machinefile <file>

MPI machine resource file name. Each hostname must appear on a separate line and can be appended by a colon and the number of processes on the host. Lines beginning with the hash symbol are interpreted as comments. The host loads are assigned in a round-robin fashion until the requested process count from -np is satisfied. Then processes are allocated to the hosts using that loading and filling all the CPUs/Cores of a host before allocating to the next host. Implies parallel execution. Cannot be used with -on or -batchsystem.

-mpi <driver>

-mpidriver <driver>

Specifies the MPI driver used for communication between processes. The default MPI driver on Linux is Open MPI and on Windows it is MS MPI. See Supported MPI Implementations for details.

-mpiflags <options>

MPI driver expert options.

-mpitest [:<options>]

Performs MPI tests and exits.

-np <np>

Number of processes to use. Implies parallel execution. If the -np option is omitted and -machinefile, -on, or -batchsystem is specified, the number of processes is assumed to be the number that the resource list prescribes.

-np <np[,npcosim]>

Number of processors to use for co-simulation, where np is the number of processes for Simcenter STAR-CCM+ and npcosim is the number of processes for the other tool.

-on <host[:np][,host[:np]]>

MPI resource list. Process distribution follows the same logic as for -machinefile. Implies parallel execution. Cannot be used with -machinefile or -batchsystem.

-pio

Activates parallel input/output on RAID-5 file systems. When this flag is included, the given simulation file is restored using parallel I/O, and all subsequent simulation files are saved using parallel I/O.

-cpubind <policy>

Specifies what binding policy out of off, bandwidth, and latency to use when binding CPUs.

You can request a report to display the binding layout by entering: -cpubind v

See CPU Binding for details.

GPGPU Options

Argument Description
-gpgpu auto[:N][:oversubscribe]
Automatic selection of GPGPU cards from those available on the machine. [:N] is an optional count. For example:
  • -gpgpu auto—uses all suitable GPGPUs. When running on multiple hosts, processes are distributed evenly across all hosts to improve GPGPU utilization.
  • -gpgpu auto:4—automatically selects 4 GPGPUs
  • -gpgpu auto:oversubscribe—when running on multiple hosts, processes are distributed according to the default placement described in -machinefile <file>

-gpgpu auto does not account for other processes which use the GPGPUs (including other Simcenter STAR-CCM+ processes). If you do not have sole use of all the GPGPUs for a single job then consider explicitly specifying which GPGPUs to use. The other methods for -gpgpu permit explicit selections.

On NVIDIA DGX systems, the DGX Display GPU is never selected.

-gpgpu n[,n]+ Specifies the index of which GPGPUs to use. For example, -gpgpu 0,1—uses GPGPUs with index 0 and 1.

On NVIDIA GPUs, the GPGPU indices are expected to be equal to the corresponding CUDA indices reported by the nvidia-smi tool.

-gpgpu force:n[,n]+ Specifies the index of which GPGPUs to use, but without validation. For example, -gpgpu force:2,4 forces usage of GPGPUs with index 2 and 4 without validation.
-gpgpu file:file.txt

Provides GPGPU selection within the specified file. This option permits the most fine-grained GPGPU selection and is useful when different selections must be made on different hosts. The file must contain a single line per host involved. Each line contains the host name as reported by the hostname command, followed by a space and the -gpgpu arguments applicable on that host. For example:

  • host1 auto:2
  • host2 1,2,5
  • host3 force:0
-gpgpu <usage options>:nomps Apply the <usage options> as specified by the options above, but do not start MPS even if MPS is deemed desirable. For example, -gpgpu auto:4:nomps selects 4 cards on the machine but does not start MPS.
-require-gpgpu-compatibility Require GPGPU compatibility. When non-GPGPU-compatible solvers are active, this causes an input error to be issued at solver execution time instead of falling back to running on the CPU. In batch execution, this effectively stops the job.

Some GPGPU cards consist of multiple logical GPGPUs. This includes the NVIDIA A16 (4 logical GPGPUs) and the AMD Instinct MI250/MI250X (2 logical GPGPUs). For purposes of the -gpgpu option, each logical GPGPU is treated as an independent GPGPU card.