Setting Up the Simulation Operation Sequence
Simulation operations allow you to automate tasks, especially complex workflows within Simcenter STAR-CCM+. In this tutorial, a loop is required in which you run the sequence of steps for adjoint shape optimization.
- Solve the primal flow.
- Solve adjoint and compute surface sensitivity.
- Deform the mesh according to the surface sensitivity.
In order to run the sequence in the fully automated manner, the mesh quality and the direction of the cost function change are checked before runing the next optimization cycle. The operation sequence is shown as follows:

To set up the operation sequence:
- Right-click the New. node and select
- Rename the Simulation Operations 1 node to Shape Optimization.
-
To add the Clear Solution operation:
-
To add the Reset LoopCounter operation:
-
To solve the primal flow:
- Right-click the Operations node and select .
- Rename the Solve Physics node to Solve Initial Primal and set Simulation Objects to Physics 1.
-
To build a loop which runs a number of shape optimization cycles defined by
LoopCounter:
-
You define the following three steps as a sub-sequence under the loop operation:
- Increase LoopCounter by 1
- Solve adjoint with surface sensitivity
- Deform the volume mesh
- Check the mesh and the change of the total pressure
- If the mesh quality is acceptable, solve the primal flow with the optimized geometry.
- If the criteria are not fulfilled, stop the simulation sequence.
-
To define what happens when the condition evaluates to true:
- Right-click the node and select .
- Rename Solve Physics to Solve Primal and set Simulation Objects to Physics 1.
- To build the False sub-sequence, right-click the node and select .