Skip to content

Issue with Multipoint Optimization in SU2 Using SST Turbulence Model #2619

@EngJamal2023

Description

@EngJamal2023

I am facing an issue when performing compressible flow simulations with SST turbulence modeling for multipoint optimization. The optimization works fine for single-point or different control points, but when I attempt multipoint optimization, I encounter the following error consistently:


Error Message:

KeyError: 'AIRFOIL_AREA'

This error occurs when I run the optimization script using the following command:

python3 /usr/local/bin/shape_optimization.py -n 4 -f SST_FFA_W3_comp.cfg log.txt

I’ve provided a snippet of the error traceback below:

Traceback (most recent call last):
  File "/usr/local/bin/shape_optimization.py", line 314, in <module>
    main()
  File "/usr/local/bin/shape_optimization.py", line 184, in main
    shape_optimization(options.filename, options.nzones)
  ...
  File "/usr/local/bin/SU2/eval/functions.py", line 731, in multipoint
    func[i + 1] = aerodynamics(konfig, ztate)
  File "/usr/local/bin/SU2/eval/functions.py", line 334, in aerodynamics
    funcs[key] = state["FUNCTIONS"][key]
KeyError: 'AIRFOIL_AREA'

Configuration and Problem Setup:

  • Solver: RANS
  • Turbulence Model: SST
  • Multipoint Optimization Configuration: The optimization setup is defined with multiple Mach numbers, angles of attack (AOA), and Reynolds numbers for each point.

Multipoint Setup Example:

MULTIPOINT_MACH_NUMBER= ( 0.1, 0.2)
MULTIPOINT_WEIGHT= ( 0.5, 0.50 )
MULTIPOINT_AOA= ( 5.0, 8.0)
MULTIPOINT_TARGET_CL= ( 0.912, 1.255)
MULTIPOINT_REYNOLDS_NUMBER= ( 1.5E6, 2.54E6 )

Error Analysis:

  • The error suggests that during the evaluation of the multipoint function, SU2 is unable to find the key 'AIRFOIL_AREA' in the state["FUNCTIONS"] dictionary. This might be because the necessary airfoil area function or value isn't being computed or passed correctly when switching to multipoint mode.
  • I’ve tested the code for single-point optimization, and it works without issues. The problem only arises when attempting multipoint optimization.

Potential Fixes I’ve Tried:

  1. Ensured the mesh is well-defined and valid, and it works fine for single-point optimizations.
  2. Attempted different configurations of the multipoint optimization setup, including adjusting the Mach number, Reynolds number, and other parameters.
  3. Tried to define additional output functions for the multipoint optimization setup to ensure all necessary parameters are computed correctly.

Despite these efforts, the error persists, and I am unable to proceed with multipoint optimization.

Request:
I would greatly appreciate any suggestions or recommendations on:

  • How to resolve this 'AIRFOIL_AREA' key error when running multipoint optimization.
  • Any adjustments to the configuration file or the multipoint optimization setup that I may have missed.
  • Possible fixes related to the calculation of airfoil area or additional parameters required for multipoint evaluation.

Thank you for your time and support. I look forward to your guidance on resolving this issue.

multiplepoint.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions