-
Notifications
You must be signed in to change notification settings - Fork 909
Description
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.txtI’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 thestate["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:
- Ensured the mesh is well-defined and valid, and it works fine for single-point optimizations.
- Attempted different configurations of the multipoint optimization setup, including adjusting the Mach number, Reynolds number, and other parameters.
- 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.