From 84e7df81f99c028110e6531141fa3fab75f8def9 Mon Sep 17 00:00:00 2001 From: ManasBagul23 Date: Wed, 16 Sep 2026 22:40:31 +0530 Subject: [PATCH 1/2] Match maxHF history header in SU2_PY history map SU2_CFD writes the MAXIMUM_HEATFLUX history field with the header "maxHF" (and "d[maxHF]" for its derivative), but historyMap.py expects "MaxHF". read_history matches headers exactly, so MAXIMUM_HEATFLUX was never found in the history file and could not be used as an objective or constraint from the Python scripts. --- SU2_PY/SU2/io/historyMap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SU2_PY/SU2/io/historyMap.py b/SU2_PY/SU2/io/historyMap.py index 57392eb82073..7af078b0a6ae 100644 --- a/SU2_PY/SU2/io/historyMap.py +++ b/SU2_PY/SU2/io/historyMap.py @@ -458,7 +458,7 @@ "D_MAXIMUM_HEATFLUX": { "DESCRIPTION": "Derivative value", "GROUP": "D_HEAT", - "HEADER": "d[MaxHF]", + "HEADER": "d[maxHF]", "TYPE": "D_COEFFICIENT", }, "D_MOMENT_X": { @@ -759,7 +759,7 @@ "DESCRIPTION": "Maximum heatflux on all surfaces defined " "in MARKER_MONITORING", "GROUP": "HEAT", - "HEADER": "MaxHF", + "HEADER": "maxHF", "TYPE": "COEFFICIENT", }, "MAX_ADJ_DENSITY": { From 21f08a03485ab48ed6dec0480ddfd5d4cf8d525e Mon Sep 17 00:00:00 2001 From: ManasBagul23 Date: Thu, 17 Sep 2026 12:39:07 +0530 Subject: [PATCH 2/2] Match time-averaged maxHF history headers The time-averaged fields derive their headers from the base field name, so SU2_CFD writes tavg[maxHF] and dtavg[maxHF], not tavg[MaxHF] and dtavg[MaxHF]. --- SU2_PY/SU2/io/historyMap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SU2_PY/SU2/io/historyMap.py b/SU2_PY/SU2/io/historyMap.py index 7af078b0a6ae..52a5dbb11441 100644 --- a/SU2_PY/SU2/io/historyMap.py +++ b/SU2_PY/SU2/io/historyMap.py @@ -1567,7 +1567,7 @@ "TAVG_D_MAXIMUM_HEATFLUX": { "DESCRIPTION": "weighted time average derivative " "value", "GROUP": "TAVG_D_HEAT", - "HEADER": "dtavg[MaxHF]", + "HEADER": "dtavg[maxHF]", "TYPE": "TAVG_D_COEFFICIENT", }, "TAVG_D_MOMENT_X": { @@ -1813,7 +1813,7 @@ "TAVG_MAXIMUM_HEATFLUX": { "DESCRIPTION": "weighted time average value", "GROUP": "TAVG_HEAT", - "HEADER": "tavg[MaxHF]", + "HEADER": "tavg[maxHF]", "TYPE": "TAVG_COEFFICIENT", }, "TAVG_MOMENT_X": {