Setting up a Gradient-Based Optimization Study

A gradient-based optimization study is an optimum search procedure based on the gradients (sensitivities) of geometric parameters. Simcenter STAR-CCM+ computes the parametric gradients for each geometric parameter, based on the geometric sensitivity of the parameter and the adjoint surface sensitivity of the entire geometry towards the optimization objective.

To run a gradient-based optimization, you set up an optimization study in Design Manager using the Sequential Quadratic Programming (SQP) method. For this type of optimization, the reference simulation requires:
  • A parametrized CAD-Model, either prepared in Simcenter STAR-CCM+ using 3D-CAD or imported using CAD Clients.
  • The surface mesher Geometric Sensitivity
  • The physics model Adjoint Surface Sensitivity
  1. To define a parametrized CAD model:
    • Create the geometry in 3D-CAD and define design parameters for the geometric features that you want to optimize in the study. See Using 3D-CAD and Working with Design Parameters.
    • Create the geometry in an external CAD package that has a Simcenter STAR-CCM+ Client. In the CAD model, include the relevant design parameters. Transfer the geometry in Simcenter STAR-CCM+ using the Simcenter STAR-CCM+ Client for the CAD package.

      This approach transfers the geometry as a CAD Client model in Simcenter STAR-CCM+. The design parameters are listed under CAD Parameters node. See CAD Client Design Parameters.

  2. As this type of optimization uses global parameters, replace the parameters from either the 3D-CAD model (Design Parameters) or the imported CAD Client model (CAD Parameters) with global parameters. For instructions, see Replace Parameters.
  3. To compute the geometric sensitivity, include the Geometric Sensitivity mesher in the relevant mesh operation. For detailed instructions, see Geometric Sensitivity.
    1. Select the Default Controls > Geometric Sensitivity node and set Parameters to the geometric parameters that you want to optimize.
      Geometric Sensitivity mesher only supports global parameters. To link 3D-CAD design parameters and CAD client CAD parameters to global parameters, refer to Geometric Sensitivity.
    2. Specify appropriate Relative Step Size and Minimum Step Size. For guidance, see Geometric Sensitivity.
  4. To obtain the surface sensitivity information, activate the adjoint solver and create cost function reports. Only the reports used as adjoint cost function can be selected later as objectives or constraints for the optimization.
    1. Create reports for all objectives and constraints.
    2. In the relevant physics continuum, include the adjoint Surface Sensitivity model. For details, see Computing the Surface Sensitivity.
    3. Add reports as adjoint cost functions. See Creating the Adjoint Cost Functions.
    4. Compute surface sensitivities of the geometry with respect to specified cost functions. See Computing the Surface Sensitivity.
  5. Create the relevant scenes and plots that you want Design Manager to use for post-processing.
  6. Make sure that the stopping criteria are appropriate for running various designs.
  7. To start a gradient-based optimization:
    1. Create a Design Manager project. See Creating a Design Manager Project.
    2. Right-click the Design Studies node and select New.
    3. Select the Design Study node and set the Study Type to Optimization.
    4. Select the Optimization Settings node and set Optimization Type to Sequential Quadratic Programming (SQP).
    5. Select the Optimization Settings > SQP Method node and set the following properties:
      • Maximum Outer Iterations—specifies the number of the SQP outer iterations.
      • Maximum Line Search Iteration—specifies the largest possible number of design runs without recalculating the sensitivities.
      • Starting Design—specifies the starting point of the optimization search.

      For more details, see Optimization Type Reference.

    6. Select the [design study] > Input Parameters node and add the input parameters as Parameters.

      You can only select the parameters for which Simcenter STAR-CCM+ computed the relevant sensitivities. For these parameters, the Sensitivity property is activated.



    7. Add responses for the design study.
      This type of study requires responses that are associated with an adjoint cost function. To verify this requirement, check whether the Adjoint Cost Function property is activated.


      After adding the responses, you can specify them as objective or constraint for the optimization study.

  8. Run the design study. See Running a Design Study.
    When using the SQP method, the optimization search is sequential. The study runs serial—only one Simultaneous Jobs at a time.
  9. To analyze the optimization results:
    • To visualize the optimization path, create a history plot for the objective. When searching for minimum, Design Manager reduces the objective within each outer iteration.
    • Create a sensitivity plot for all the geometric parameters the optimizer accesses. When the local minimum is reached, all the sensitivities approach to zero (in absence of constraints).

    For more details, see Plot Setup Dialog Reference.