Scripting the Simulation

You can script the process of setting up and running a simulation in Simcenter STAR-CCM+ In-cylinder.

Similar to Simcenter STAR-CCM+ (see Scripting the Application), scripting in Simcenter STAR-CCM+ In-cylinder is particularly useful when you want to automate repetitive tasks or when you want to perform certain actions within the project when running in batch (locally or on a cluster).
To script an ICE simulation:
  1. Before recording a macro, be clear on how you want to play the macro.
    • If you want to play the macro from Simcenter STAR-CCM+ or when running in batch, record the step when clicking (Open Simcenter STAR-CCM+ In-Cylinder).
    • If you want to run the macro from Simcenter STAR-CCM+ In-cylinder, do not record clicking (Open Simcenter STAR-CCM+ In-Cylinder).
  2. In Simcenter STAR-CCM+ In-cylinder, record the steps that you want to include in the macro. See Recording a Macro.
  3. Play the macro. See Playing the Macro.