From 8878f3d890e736f592b4ead64bb1d4fa8aad06bc Mon Sep 17 00:00:00 2001 From: Nikita Ageev Date: Sun, 27 Sep 2026 23:49:50 +0300 Subject: [PATCH 1/2] Fix STATION function names in SU2_PY: SU2_GEO numbers stations from 1 SU2_GEO writes STATION1_* ... STATIONn_* for the stations in GEO_LOCATION_STATIONS, while optnames_geo listed STATION0_* ... STATION19_*. STATION20_* was therefore rejected by SU2.eval.func/grad as an unknown function name, and STATION0_* is never written. --- AUTHORS.md | 1 + SU2_PY/SU2/io/tools.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index d82ccb599fe9..c1a294c8c38b 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -120,6 +120,7 @@ Mor Nat-1 Nicola Fonzi Nijso Beishuizen +Nikita Ageev Ole Burghardt Patrick Mischke Paul Urbanczyk diff --git a/SU2_PY/SU2/io/tools.py b/SU2_PY/SU2/io/tools.py index aaeccf9433fc..a7c89fc4d5a5 100755 --- a/SU2_PY/SU2/io/tools.py +++ b/SU2_PY/SU2/io/tools.py @@ -271,8 +271,10 @@ def getTurboPerfIndex(nZones=1): "NACELLE_MAX_TWIST", ] +# SU2_GEO numbers the stations of GEO_LOCATION_STATIONS from 1 (STATION1_*), +# see SU2_GEO.cpp, so the names cover stations 1 to 20. PerStation = [] -for i in range(20): +for i in range(1, 21): PerStation.append("STATION" + str(i) + "_AREA") PerStation.append("STATION" + str(i) + "_LENGTH") PerStation.append("STATION" + str(i) + "_WIDTH") From 55ed7abb499ed30473bef7c03f68f54da02633b1 Mon Sep 17 00:00:00 2001 From: Nikita Ageev Date: Mon, 28 Sep 2026 09:02:32 +0300 Subject: [PATCH 2/2] config_template.cfg: document 1-based STATION numbering --- config_template.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config_template.cfg b/config_template.cfg index 88533d33c689..3480f09fcc61 100644 --- a/config_template.cfg +++ b/config_template.cfg @@ -2212,7 +2212,7 @@ GEO_DESCRIPTION= AIRFOIL % Z location of the waterline GEO_WATERLINE_LOCATION= 0.0 % -% Coordinate of the stations to be analyzed +% Coordinate of the stations to be analyzed (STATION1_* ... STATIONn_* in SU2_GEO output, n <= 20 for SU2_PY) GEO_LOCATION_STATIONS= (0.0, 0.5, 1.0) % % Definition of the nacelle location (higlite coordinates, tilt angle, toe angle) @@ -2727,7 +2727,7 @@ REORIENT_ELEMENTS= YES % AIRFOIL_AREA, AIRFOIL_THICKNESS, AIRFOIL_CHORD, AIRFOIL_TOC, AIRFOIL_AOA, % WING_VOLUME, WING_MIN_THICKNESS, WING_MAX_THICKNESS, WING_MAX_CHORD, WING_MIN_TOC, WING_MAX_TWIST, WING_MAX_CURVATURE, WING_MAX_DIHEDRAL % STATION#_WIDTH, STATION#_AREA, STATION#_THICKNESS, STATION#_CHORD, STATION#_TOC, -% STATION#_TWIST (where # is the index of the station defined in GEO_LOCATION_STATIONS) +% STATION#_TWIST (where # is the 1-based index, 1 to 20, of the station defined in GEO_LOCATION_STATIONS) % % Available design variables % 2D Design variables