Skip to content

Commit a503f74

Browse files
authored
Merge pull request #1534 from su2code/output_hf_per_surf
Output heatfluxes (total and maximum) per surface
2 parents 09a2032 + 6325e06 commit a503f74

13 files changed

Lines changed: 135 additions & 294 deletions

SU2_CFD/include/output/CFlowOutput.hpp

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,38 @@ class CFlowOutput : public CFVMOutput{
140140
* \brief Add aerodynamic coefficients as output fields
141141
* \param[in] config - Definition of the particular problem.
142142
*/
143-
void AddAerodynamicCoefficients(CConfig *config);
143+
void AddAerodynamicCoefficients(const CConfig* config);
144144

145145
/*!
146146
* \brief Set the value of the aerodynamic coefficients
147147
* \param[in] config - Definition of the particular problem.
148148
* \param[in] flow_solver - The container holding all solution data.
149149
*/
150-
void SetAerodynamicCoefficients(CConfig *config, CSolver *flow_solver);
150+
void SetAerodynamicCoefficients(const CConfig* config, const CSolver* flow_solver);
151151

152152
/*!
153-
* \brief Set the value of the rotating frame coefficients (CT, CQ and CMerit).
153+
* \brief Add heat flux coefficients as output fields
154154
* \param[in] config - Definition of the particular problem.
155+
*/
156+
void AddHeatCoefficients(const CConfig* config);
157+
158+
/*!
159+
* \brief Set the value of the heat flux coefficients
160+
* \param[in] config - Definition of the particular problem.
161+
* \param[in] flow_solver - The container holding all solution data.
162+
*/
163+
void SetHeatCoefficients(const CConfig* config, const CSolver* flow_solver);
164+
165+
/*!
166+
* \brief Add rotating frame coefficients as output fields.
167+
*/
168+
void AddRotatingFrameCoefficients();
169+
170+
/*!
171+
* \brief Set the value of the rotating frame coefficients (CT, CQ and CMerit).
155172
* \param[in] flow_solver - The container holding all solution data.
156173
*/
157-
void SetRotatingFrameCoefficients(CConfig *config, CSolver *flow_solver);
174+
void SetRotatingFrameCoefficients(const CSolver* flow_solver);
158175

159176
/*!
160177
* \brief Add CP inverse design output as history fields

SU2_CFD/include/output/COutput.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class COutput {
621621
if (it != historyOutputPerSurface_Map.end()) {
622622
it->second[iMarker].value = value;
623623
} else {
624-
SU2_MPI::Error(string("Cannot find output field with name ") + name, CURRENT_FUNCTION);
624+
SU2_MPI::Error("Cannot find output field with name " + name, CURRENT_FUNCTION);
625625
}
626626
}
627627

SU2_CFD/include/solvers/CFVMFlowSolverBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,7 @@ class CFVMFlowSolverBase : public CSolver {
20142014
* \brief Provide the total heat load.
20152015
* \return Value of the heat load (viscous contribution).
20162016
*/
2017-
inline su2double GetTotal_HeatFlux(void) const final { return Total_Heat; }
2017+
inline su2double GetTotal_HeatFlux() const final { return Total_Heat; }
20182018

20192019
/*!
20202020
* \brief Provide the total heat load.

SU2_CFD/src/output/CFlowCompOutput.cpp

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -167,36 +167,14 @@ void CFlowCompOutput::SetHistoryOutputFields(CConfig *config){
167167
AddHistoryOutput("LINSOL_RESIDUAL", "LinSolRes", ScreenOutputFormat::FIXED, "LINSOL", "Residual of the linear solver.");
168168
AddHistoryOutputFields_ScalarLinsol(config);
169169

170-
/// BEGIN_GROUP: ROTATING_FRAME, DESCRIPTION: Coefficients related to a rotating frame of reference.
171-
/// DESCRIPTION: Merit
172-
AddHistoryOutput("FIGURE_OF_MERIT", "CMerit", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "Merit", HistoryFieldType::COEFFICIENT);
173-
/// DESCRIPTION: CT
174-
AddHistoryOutput("THRUST", "CT", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "CT", HistoryFieldType::COEFFICIENT);
175-
/// DESCRIPTION: CQ
176-
AddHistoryOutput("TORQUE", "CQ", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "CQ", HistoryFieldType::COEFFICIENT);
177-
/// END_GROUP
178-
179-
/// BEGIN_GROUP: EQUIVALENT_AREA, DESCRIPTION: Equivalent area.
180-
/// DESCRIPTION: Nearfield obj. function
181-
AddHistoryOutput("NEARFIELD_OF", "CNearFieldOF", ScreenOutputFormat::SCIENTIFIC, "EQUIVALENT_AREA", "Nearfield obj. function", HistoryFieldType::COEFFICIENT);
182-
/// END_GROUP
183-
184-
/// /// BEGIN_GROUP: HEAT_COEFF, DESCRIPTION: Heat coefficients on all surfaces set with MARKER_MONITORING.
185-
/// DESCRIPTION: Total heatflux
186-
AddHistoryOutput("TOTAL_HEATFLUX", "HF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total heatflux on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
187-
/// DESCRIPTION: Maximal heatflux
188-
AddHistoryOutput("MAXIMUM_HEATFLUX", "maxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total maximum heatflux on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
189-
/// END_GROUP
190-
191170
AddHistoryOutput("MIN_DELTA_TIME", "Min DT", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current minimum local time step");
192171
AddHistoryOutput("MAX_DELTA_TIME", "Max DT", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current maximum local time step");
193172

194173
AddHistoryOutput("MIN_CFL", "Min CFL", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current minimum of the local CFL numbers");
195174
AddHistoryOutput("MAX_CFL", "Max CFL", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current maximum of the local CFL numbers");
196175
AddHistoryOutput("AVG_CFL", "Avg CFL", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current average of the local CFL numbers");
197176

198-
/// /// BEGIN_GROUP: FIXED_CL, DESCRIPTION: Relevant outputs for the Fixed CL mode
199-
177+
/// BEGIN_GROUP: FIXED_CL, DESCRIPTION: Relevant outputs for the Fixed CL mode
200178
if (config->GetFixed_CL_Mode()){
201179
/// DESCRIPTION: Difference between current and target CL
202180
AddHistoryOutput("DELTA_CL", "Delta_CL", ScreenOutputFormat::SCIENTIFIC, "FIXED_CL", "Difference between Target CL and current CL", HistoryFieldType::COEFFICIENT);
@@ -207,6 +185,7 @@ void CFlowCompOutput::SetHistoryOutputFields(CConfig *config){
207185
/// DESCRIPTION: AOA control command by the CL Driver
208186
AddHistoryOutput("CL_DRIVER_COMMAND", "CL_Driver_Command", ScreenOutputFormat::SCIENTIFIC, "FIXED_CL", "CL Driver's control command", HistoryFieldType::RESIDUAL);
209187
}
188+
/// END_GROUP
210189

211190
if (config->GetDeform_Mesh()){
212191
AddHistoryOutput("DEFORM_MIN_VOLUME", "MinVolume", ScreenOutputFormat::SCIENTIFIC, "DEFORM", "Minimum volume in the mesh");
@@ -215,23 +194,19 @@ void CFlowCompOutput::SetHistoryOutputFields(CConfig *config){
215194
AddHistoryOutput("DEFORM_RESIDUAL", "DeformRes", ScreenOutputFormat::FIXED, "DEFORM", "Residual of the linear solver for the mesh deformation");
216195
}
217196

218-
/*--- Add analyze surface history fields --- */
219-
220197
AddAnalyzeSurfaceOutput(config);
221198

222-
/*--- Add aerodynamic coefficients fields --- */
223-
224199
AddAerodynamicCoefficients(config);
225200

226201
if (config->GetViscous()) {
227202
AddHistoryOutput("BUFFET", "Buffet", ScreenOutputFormat::SCIENTIFIC, "AERO_COEFF", "Buffet sensor", HistoryFieldType::COEFFICIENT);
228203
}
229204

230-
/*--- Add Cp diff fields ---*/
205+
AddHeatCoefficients(config);
231206

232-
Add_CpInverseDesignOutput();
207+
AddRotatingFrameCoefficients();
233208

234-
/*--- Add nearfield diff fields ---*/
209+
Add_CpInverseDesignOutput();
235210

236211
Add_NearfieldInverseDesignOutput();
237212

@@ -421,9 +396,6 @@ void CFlowCompOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CSol
421396
}
422397
}
423398

424-
SetHistoryOutputValue("TOTAL_HEATFLUX", flow_solver->GetTotal_HeatFlux());
425-
SetHistoryOutputValue("MAXIMUM_HEATFLUX", flow_solver->GetTotal_MaxHeatFlux());
426-
427399
SetHistoryOutputValue("MIN_DELTA_TIME", flow_solver->GetMin_Delta_Time());
428400
SetHistoryOutputValue("MAX_DELTA_TIME", flow_solver->GetMax_Delta_Time());
429401

@@ -462,9 +434,11 @@ void CFlowCompOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CSol
462434
SetHistoryOutputValue("BUFFET", flow_solver->GetTotal_Buffet_Metric());
463435
}
464436

437+
SetHeatCoefficients(config, flow_solver);
438+
465439
/*--- Set rotating frame coefficients --- */
466440

467-
SetRotatingFrameCoefficients(config, flow_solver);
441+
SetRotatingFrameCoefficients(flow_solver);
468442

469443
/*--- Set Cp diff fields ---*/
470444

SU2_CFD/src/output/CFlowIncOutput.cpp

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -153,25 +153,6 @@ void CFlowIncOutput::SetHistoryOutputFields(CConfig *config){
153153
if (config->AddRadiation()) AddHistoryOutput("BGS_RAD_ENERGY", "bgs[E_Rad]", ScreenOutputFormat::FIXED, "BGS_RES", "BGS residual of the radiative energy.", HistoryFieldType::RESIDUAL);
154154
/// END_GROUP
155155

156-
/// BEGIN_GROUP: ROTATING_FRAME, DESCRIPTION: Coefficients related to a rotating frame of reference.
157-
/// DESCRIPTION: Merit
158-
AddHistoryOutput("FIGURE_OF_MERIT", "CMerit", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "Merit", HistoryFieldType::COEFFICIENT);
159-
/// DESCRIPTION: CT
160-
AddHistoryOutput("THRUST", "CT", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "CT", HistoryFieldType::COEFFICIENT);
161-
/// DESCRIPTION: CQ
162-
AddHistoryOutput("TORQUE", "CQ", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "CQ", HistoryFieldType::COEFFICIENT);
163-
/// END_GROUP
164-
165-
/// BEGIN_GROUP: HEAT_COEFF, DESCRIPTION: Heat coefficients on all surfaces set with MARKER_MONITORING.
166-
/// DESCRIPTION: Total heatflux
167-
AddHistoryOutput("TOTAL_HEATFLUX", "HF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total heatflux on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
168-
/// DESCRIPTION: Maximal heatflux
169-
AddHistoryOutput("MAXIMUM_HEATFLUX", "maxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total maximum heatflux on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
170-
/// DESCRIPTION: Temperature
171-
if (heat || weakly_coupled_heat)
172-
AddHistoryOutput("AVG_TEMPERATURE", "Temp", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total avg. temperature on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
173-
/// END_GROUP
174-
175156
/// DESCRIPTION: Angle of attack
176157
AddHistoryOutput("AOA", "AoA", ScreenOutputFormat::SCIENTIFIC,"AOA", "Angle of attack");
177158
/// DESCRIPTION: Linear solver iterations
@@ -199,14 +180,17 @@ void CFlowIncOutput::SetHistoryOutputFields(CConfig *config){
199180
AddHistoryOutput("STREAMWISE_HEAT", "SWHeat", ScreenOutputFormat::FIXED, "STREAMWISE_PERIODIC", "Integrated heat for streamwise periodic flow");
200181
}
201182

202-
/*--- Add analyze surface history fields --- */
203-
204183
AddAnalyzeSurfaceOutput(config);
205184

206-
/*--- Add aerodynamic coefficients fields --- */
207-
208185
AddAerodynamicCoefficients(config);
209186

187+
if (heat || weakly_coupled_heat) {
188+
AddHeatCoefficients(config);
189+
AddHistoryOutput("AVG_TEMPERATURE", "Temp", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Average temperature on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
190+
}
191+
192+
AddRotatingFrameCoefficients();
193+
210194
}
211195

212196
void CFlowIncOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CSolver **solver) {
@@ -239,25 +223,19 @@ void CFlowIncOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CSolv
239223
}
240224

241225
if (weakly_coupled_heat){
242-
SetHistoryOutputValue("TOTAL_HEATFLUX", heat_solver->GetTotal_HeatFlux());
243-
SetHistoryOutputValue("MAXIMUM_HEATFLUX", heat_solver->GetTotal_MaxHeatFlux());
244-
SetHistoryOutputValue("AVG_TEMPERATURE", heat_solver->GetTotal_AvgTemperature());
245-
SetHistoryOutputValue("RMS_TEMPERATURE", log10(heat_solver->GetRes_RMS(0)));
246-
SetHistoryOutputValue("MAX_TEMPERATURE", log10(heat_solver->GetRes_Max(0)));
226+
SetHeatCoefficients(config, heat_solver);
227+
SetHistoryOutputValue("AVG_TEMPERATURE", heat_solver->GetTotal_AvgTemperature());
228+
SetHistoryOutputValue("RMS_TEMPERATURE", log10(heat_solver->GetRes_RMS(0)));
229+
SetHistoryOutputValue("MAX_TEMPERATURE", log10(heat_solver->GetRes_Max(0)));
247230
if (multiZone) SetHistoryOutputValue("BGS_TEMPERATURE", log10(heat_solver->GetRes_BGS(0)));
248231
}
249-
if (heat){
250-
SetHistoryOutputValue("TOTAL_HEATFLUX", flow_solver->GetTotal_HeatFlux());
251-
SetHistoryOutputValue("MAXIMUM_HEATFLUX", flow_solver->GetTotal_MaxHeatFlux());
252-
SetHistoryOutputValue("AVG_TEMPERATURE", flow_solver->GetTotal_AvgTemperature());
253-
if (nDim == 3) SetHistoryOutputValue("RMS_TEMPERATURE", log10(flow_solver->GetRes_RMS(4)));
254-
else SetHistoryOutputValue("RMS_TEMPERATURE", log10(flow_solver->GetRes_RMS(3)));
255-
256-
if (nDim == 3) SetHistoryOutputValue("MAX_TEMPERATURE", log10(flow_solver->GetRes_Max(4)));
257-
else SetHistoryOutputValue("MAX_TEMPERATURE", log10(flow_solver->GetRes_Max(3)));
258-
if (multiZone){
259-
if (nDim == 3) SetHistoryOutputValue("BGS_TEMPERATURE", log10(flow_solver->GetRes_BGS(4)));
260-
else SetHistoryOutputValue("BGS_TEMPERATURE", log10(flow_solver->GetRes_BGS(3)));
232+
if (heat) {
233+
SetHeatCoefficients(config, flow_solver);
234+
SetHistoryOutputValue("AVG_TEMPERATURE", flow_solver->GetTotal_AvgTemperature());
235+
SetHistoryOutputValue("RMS_TEMPERATURE", log10(flow_solver->GetRes_RMS(nDim + 1)));
236+
SetHistoryOutputValue("MAX_TEMPERATURE", log10(flow_solver->GetRes_Max(nDim + 1)));
237+
if (multiZone) {
238+
SetHistoryOutputValue("BGS_TEMPERATURE", log10(flow_solver->GetRes_BGS(nDim + 1)));
261239
}
262240
}
263241

@@ -296,7 +274,7 @@ void CFlowIncOutput::LoadHistoryData(CConfig *config, CGeometry *geometry, CSolv
296274

297275
/*--- Set rotating frame coefficients --- */
298276

299-
SetRotatingFrameCoefficients(config, flow_solver);
277+
SetRotatingFrameCoefficients(flow_solver);
300278

301279
/*--- Keep this as last, since it uses the history values that were set. ---*/
302280

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* \file CFlowOutput.cpp
3-
* \brief Main subroutines for compressible flow output
3+
* \brief Common functions for flow output.
44
* \author R. Sanchez
55
* \version 7.3.0 "Blackbird"
66
*
@@ -1083,7 +1083,7 @@ void CFlowOutput::LoadSurfaceData(CConfig *config, CGeometry *geometry, CSolver
10831083
SetVolumeOutputValue("Y_PLUS", iPoint, solver[FLOW_SOL]->GetYPlus(iMarker, iVertex));
10841084
}
10851085

1086-
void CFlowOutput::AddAerodynamicCoefficients(CConfig *config){
1086+
void CFlowOutput::AddAerodynamicCoefficients(const CConfig* config) {
10871087

10881088
/// BEGIN_GROUP: AERO_COEFF, DESCRIPTION: Sum of the aerodynamic coefficients and forces on all surfaces (markers) set with MARKER_MONITORING.
10891089
/// DESCRIPTION: Drag coefficient
@@ -1141,7 +1141,7 @@ void CFlowOutput::AddAerodynamicCoefficients(CConfig *config){
11411141
AddHistoryOutput("COMBO", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Combined obj. function value.", HistoryFieldType::COEFFICIENT);
11421142
}
11431143

1144-
void CFlowOutput::SetAerodynamicCoefficients(CConfig *config, CSolver *flow_solver){
1144+
void CFlowOutput::SetAerodynamicCoefficients(const CConfig* config, const CSolver* flow_solver){
11451145

11461146
SetHistoryOutputValue("DRAG", flow_solver->GetTotal_CD());
11471147
SetHistoryOutputValue("LIFT", flow_solver->GetTotal_CL());
@@ -1183,14 +1183,58 @@ void CFlowOutput::SetAerodynamicCoefficients(CConfig *config, CSolver *flow_solv
11831183
SetHistoryOutputValue("AOA", config->GetAoA());
11841184
}
11851185

1186-
void CFlowOutput::SetRotatingFrameCoefficients(CConfig *config, CSolver *flow_solver) {
1186+
void CFlowOutput::AddHeatCoefficients(const CConfig* config) {
1187+
1188+
if (!config->GetViscous()) return;
1189+
1190+
/// BEGIN_GROUP: HEAT, DESCRIPTION: Heat coefficients on all surfaces set with MARKER_MONITORING.
1191+
/// DESCRIPTION: Total heatflux
1192+
AddHistoryOutput("TOTAL_HEATFLUX", "HF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total heatflux on all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
1193+
/// DESCRIPTION: Maximal heatflux
1194+
AddHistoryOutput("MAXIMUM_HEATFLUX", "maxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Maximum heatflux across all surfaces set with MARKER_MONITORING.", HistoryFieldType::COEFFICIENT);
1195+
1196+
vector<string> Marker_Monitoring;
1197+
for (auto iMarker = 0u; iMarker < config->GetnMarker_Monitoring(); iMarker++) {
1198+
Marker_Monitoring.push_back(config->GetMarker_Monitoring_TagBound(iMarker));
1199+
}
1200+
/// DESCRIPTION: Total heatflux
1201+
AddHistoryOutputPerSurface("TOTAL_HEATFLUX_ON_SURFACE", "HF", ScreenOutputFormat::SCIENTIFIC, "HEAT_SURF", Marker_Monitoring, HistoryFieldType::COEFFICIENT);
1202+
/// DESCRIPTION: Total heatflux
1203+
AddHistoryOutputPerSurface("MAXIMUM_HEATFLUX_ON_SURFACE", "maxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT_SURF", Marker_Monitoring, HistoryFieldType::COEFFICIENT);
1204+
/// END_GROUP
1205+
}
1206+
1207+
void CFlowOutput::SetHeatCoefficients(const CConfig* config, const CSolver* flow_solver) {
1208+
1209+
if (!config->GetViscous()) return;
1210+
1211+
SetHistoryOutputValue("TOTAL_HEATFLUX", flow_solver->GetTotal_HeatFlux());
1212+
SetHistoryOutputValue("MAXIMUM_HEATFLUX", flow_solver->GetTotal_MaxHeatFlux());
1213+
1214+
for (auto iMarker = 0u; iMarker < config->GetnMarker_Monitoring(); iMarker++) {
1215+
SetHistoryOutputPerSurfaceValue("TOTAL_HEATFLUX_ON_SURFACE", flow_solver->GetSurface_HF_Visc(iMarker), iMarker);
1216+
SetHistoryOutputPerSurfaceValue("MAXIMUM_HEATFLUX_ON_SURFACE", flow_solver->GetSurface_MaxHF_Visc(iMarker), iMarker);
1217+
}
1218+
}
1219+
1220+
void CFlowOutput::AddRotatingFrameCoefficients() {
1221+
/// BEGIN_GROUP: ROTATING_FRAME, DESCRIPTION: Coefficients related to a rotating frame of reference.
1222+
/// DESCRIPTION: Merit
1223+
AddHistoryOutput("FIGURE_OF_MERIT", "CMerit", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "Thrust over torque", HistoryFieldType::COEFFICIENT);
1224+
/// DESCRIPTION: CT
1225+
AddHistoryOutput("THRUST", "CT", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "Thrust coefficient", HistoryFieldType::COEFFICIENT);
1226+
/// DESCRIPTION: CQ
1227+
AddHistoryOutput("TORQUE", "CQ", ScreenOutputFormat::SCIENTIFIC, "ROTATING_FRAME", "Torque coefficient", HistoryFieldType::COEFFICIENT);
1228+
/// END_GROUP
1229+
}
1230+
1231+
void CFlowOutput::SetRotatingFrameCoefficients(const CSolver* flow_solver) {
11871232

11881233
SetHistoryOutputValue("THRUST", flow_solver->GetTotal_CT());
11891234
SetHistoryOutputValue("TORQUE", flow_solver->GetTotal_CQ());
11901235
SetHistoryOutputValue("FIGURE_OF_MERIT", flow_solver->GetTotal_CMerit());
11911236
}
11921237

1193-
11941238
void CFlowOutput::Add_CpInverseDesignOutput(){
11951239

11961240
AddHistoryOutput("INVERSE_DESIGN_PRESSURE", "Cp_Diff", ScreenOutputFormat::FIXED, "CP_DIFF", "Cp difference for inverse design");

SU2_CFD/src/output/CHeatOutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void CHeatOutput::SetHistoryOutputFields(CConfig *config){
104104
AddHistoryOutput("BGS_TEMPERATURE", "bgs[T]", ScreenOutputFormat::FIXED, "BGS_RES", "Block-Gauss-Seidel residual of the temperature", HistoryFieldType::RESIDUAL);
105105

106106
AddHistoryOutput("TOTAL_HEATFLUX", "HF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total heatflux on all surfaces defined in MARKER_MONITORING", HistoryFieldType::COEFFICIENT);
107-
AddHistoryOutput("MAXIMUM_HEATFLUX", "MaxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total maximal heatflux on all surfaces defined in MARKER_MONITORING", HistoryFieldType::COEFFICIENT);
108-
AddHistoryOutput("AVG_TEMPERATURE", "AvgTemp", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Total average temperature on all surfaces defined in MARKER_MONITORING", HistoryFieldType::COEFFICIENT);
107+
AddHistoryOutput("MAXIMUM_HEATFLUX", "MaxHF", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Maximum heatflux on all surfaces defined in MARKER_MONITORING", HistoryFieldType::COEFFICIENT);
108+
AddHistoryOutput("AVG_TEMPERATURE", "AvgTemp", ScreenOutputFormat::SCIENTIFIC, "HEAT", "Average temperature on all surfaces defined in MARKER_MONITORING", HistoryFieldType::COEFFICIENT);
109109
AddHistoryOutput("CFL_NUMBER", "CFL number", ScreenOutputFormat::SCIENTIFIC, "CFL_NUMBER", "Current value of the CFL number");
110110

111111
AddHistoryOutput("COMBO", "ComboObj", ScreenOutputFormat::SCIENTIFIC, "COMBO", "Combined obj. function value.", HistoryFieldType::COEFFICIENT);

0 commit comments

Comments
 (0)