Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions SU2_CFD/src/output/CFlowOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,9 @@ void CFlowOutput::AddAerodynamicCoefficients(const CConfig* config) {
AddHistoryOutput("AOA", "AoA", ScreenOutputFormat::FIXED, "AOA", "Angle of attack");

AddHistoryOutput("COMBO", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Combined obj. function value.", HistoryFieldType::COEFFICIENT);
// CUSTOM_OBJFUNC is added here so historyMap.py knows how to get its
// value, the actual output is COMBO.
if (false) AddHistoryOutput("CUSTOM_OBJFUNC", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Custom obj. function value.", HistoryFieldType::COEFFICIENT);
}

void CFlowOutput::SetAerodynamicCoefficients(const CConfig* config, const CSolver* flow_solver){
Expand Down
6 changes: 6 additions & 0 deletions SU2_PY/SU2/io/historyMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,12 @@
"HEADER": "ComboObj",
"TYPE": "COEFFICIENT",
},
"CUSTOM_OBJFUNC": {
"DESCRIPTION": "Custom obj. function value.",
"GROUP": "COMBO",
"HEADER": "ComboObj",
"TYPE": "COEFFICIENT",
},
"DEFORM_ITER": {
"DESCRIPTION": "Linear solver iterations for the mesh " "deformation",
"GROUP": "DEFORM",
Expand Down
Loading