Setting Up the Simulation Operation Sequence
Simcenter STAR-CCM+ allows you to use simulation operations to automate a complete workflow for this simulation. The sequence of steps for adjoint shape optimization is set with a loop.
For this tutorial, the shape optimization loop consists of a sequence of one flow analysis, followed by one adjoint analysis, and surface mesh morphing. To compute the displacement, you use the DisplacementMultiplier parameter, which is updated with each optimization cycle and multiplied by a decay factor. The decay factor reduces the applied displacement magnitude when approaching the minimum of the cost function, thus ensuring a stable optimization convergence.
The InitialDisplacementMultiplier and DecayFactor parameters are pre-defined in the starting simulation file.
To set up the simulation operation sequence:
- Right-click the New. node and select
- Rename the Simulation Operations 1 node to Shape Optimization.
-
Create an operation to clear the solution fields and reset the mesh adaption in
case of a restart:
In order to run the sequence in a fully automated manner, the starting volume mesh, and the zero initial displacement multiplier are included in the simulation operations.
- Right-click the node and select .
-
Initialize the displacement multiplier:
-
Create the optimization loop:
- Right-click the node and select .
- Select the Loop node and set Stopping Criterion Predicate to Maximum Steps.
- To update the mesh after each optimization step, right-click the Loop node and select .
-
Solve the primal flow:
- Right-click the node and select .
- Select the Solve Physics node and set Simulation Objects to Physics 1.
-
Solve the adjoint flow:
- Right-click the node and select .
- Select the Solve Adjoint node and set the following properties:
Property Setting Adjoint Cost Functions Mass Flow Difference Indicator Compute Surface Sensitivity Activated -
Update the displacement multiplier: