From fbdf0dd21851f6bb59a356a2524a1d9b7ea3d620 Mon Sep 17 00:00:00 2001 From: ManasBagul23 Date: Fri, 18 Sep 2026 22:19:36 +0530 Subject: [PATCH] Fix OptimalPropeller.py for a hub smaller than the first station i_hub was only assigned when a radial station lies inside the hub, so a hub radius below R/stations (e.g. no hub) stopped the script with NameError. Start from the first station in that case. --- SU2_PY/OptimalPropeller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SU2_PY/OptimalPropeller.py b/SU2_PY/OptimalPropeller.py index c9ae32113286..571e3eb817e3 100644 --- a/SU2_PY/OptimalPropeller.py +++ b/SU2_PY/OptimalPropeller.py @@ -171,6 +171,7 @@ def write_external_file(CTrs, CPrs): rs_hub = rhub / R # Computation of the non-dimensional radial stations. +i_hub = 0 for i in range(1, stations + 1): r[i - 1] = i / float(stations) if r[i - 1] <= rs_hub: