Creating and Opening Simulations from the Command Line in Serial Mode
Using the starccm+ command on its own, without any other options, launches the Simcenter STAR-CCM+ client workspace.
Options can be added to the starccm+ command to achieve more than just launching the client workspace.
- Creating a simulation connected to an interactive client
- Creating a simulation without an interactive client
- Loading an existing simulation in an interactive client
- Loading an existing simulation without an interactive client
Creating a New Simulation Connected to an Interactive Client
A single command-line expression can be used to:
- Launch an interactive client on the local machine
- Start a serial server with a new simulation on the local machine
- Connect the interactive client to the serial server
The command-line expression for these tasks is:
% starccm+ -new
Creating a New Simulation Without an Interactive Client
To create a simulation on a serial server, without launching an interactive client, use the -server option:
% starccm+ -server
The output of this command includes a line that provides the port number of the newly launched server. An example is:
% Server::start -host allegro.ourdomain.com:47830
To connect a client to this server, you would use the command:
% starccm+ -host allegro.ourdomain.com:47830
This action would launch a client on the local machine and connect it to the server running on allegro.
Loading an Existing Simulation In An Interactive Client
To launch an interactive client on the local machine:
- start a serial server on the local machine
- load an existing simulation into this server
- connect the client to the server
you can use the following command:
% starccm+ <file.sim>
where <file.sim> is the name of the simulation file you wish to load into the serial server.
Note | On Windows platforms due to a Windows Command Prompt limitation in character representation, ensure that the locale is set to the same language as the .sim filename that is being opened. |
Loading an Existing Simulation Without an Interactive Client
To launch a serial server on the local machine and load an existing simulation into it, you can use the following command:
% starccm+ -server -load <file.sim>
The output from this command ends with a line containing the host and port numbers that are needed when connecting a client.