SU2
SU2 copied to clipboard
MAXIMUM_HEATFLUX is not found by SU2_PY read_history (header maxHF vs MaxHF)
Describe the bug
Since cc9e452d25, SU2_CFD writes the MAXIMUM_HEATFLUX history field with the header maxHF (and d[maxHF], tavg[maxHF], dtavg[maxHF] for the derived fields), but SU2_PY/SU2/io/historyMap.py expects MaxHF. read_history matches headers exactly, so MAXIMUM_HEATFLUX cannot be used as an objective or constraint from the Python scripts.
To Reproduce
Run TestCases/navierstokes/flatplate/lam_flatplate.cfg with HISTORY_OUTPUT= (ITER, RMS_RES, HEAT) for a few iterations, then
import SU2
h = SU2.io.read_history("history.csv")
print("TOTAL_HEATFLUX" in h, "MAXIMUM_HEATFLUX" in h)
prints True False.
Expected behavior
MAXIMUM_HEATFLUX is found like TOTAL_HEATFLUX.
A fix is proposed in #2906.
Bug report checklist
- [x] Consulting the build instructions (https://su2code.github.io/docs_v7/Build-SU2-Linux-MacOS/).
- [x] Looking for similar problems on GitHub or CFD-Online (https://www.cfd-online.com/Forums/su2/).
- [x] Updating to the newest version of SU2 (either develop, master, or the pre-built executables https://su2code.github.io/download.html).
Desktop (please complete the following information):
- OS: Windows 11
- C++ compiler and version: MSVC 19.44 (Visual Studio 2022 Build Tools)
- MPI implementation and version: Microsoft MPI 10.1
- SU2 Version: develop