Skip to content

SURFACE_STATIC_PRESSURE not recognized as objective function #1075

@MiGaff

Description

@MiGaff

The objective functions SURFACE_STATIC_PRESSURE and SURFACE_TOTAL_PRESSURE do not work with the shape_optimization.py script.

This has been verified by running the python optimization using the test case "multiobjective_wedge" in the optimization_euler test case folder, using the provided script ("inv_wedge_ROE_multiobj.cfg")

I get the following error:

Traceback (most recent call last):
File "/usr/local/bin/shape_optimization.py", line 183, in
main()
File "/usr/local/bin/shape_optimization.py", line 98, in main
options.nzones )
File "/usr/local/bin/shape_optimization.py", line 155, in shape_optimization
project = SU2.opt.Project(config,state)
File "/usr/local/bin/SU2/opt/project.py", line 129, in init
group = historyOutFields[this_obj]['GROUP']
KeyError: 'SURFACE_TOTAL_PRESSURE'

The same happens if setting these keywords for the constraints.

My environment:

OpenSuse Leap 15.1
Python 3.6.10
gcc 7.5.0
OpenMPI 1.10.7
SU2 v7.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions