Skip to content

Commit aeafb37

Browse files
committed
Nondimensionalize Python custom HFs correctly
1 parent db21a33 commit aeafb37

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/src/solvers/CHeatSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ void CHeatSolver::BC_HeatFlux_Wall(CGeometry* geometry, CSolver** solver_contain
400400
if (!geometry->nodes->GetDomain(iPoint)) continue;
401401

402402
if (IsPyCustom) {
403-
Wall_HeatFlux = geometry->GetCustomBoundaryHeatFlux(val_marker, iVertex);
403+
Wall_HeatFlux = geometry->GetCustomBoundaryHeatFlux(val_marker, iVertex) / config->GetHeat_Flux_Ref();
404404
}
405405
/*--- Viscous contribution to the residual at the wall. ---*/
406406
const auto* Normal = geometry->vertex[val_marker][iVertex]->GetNormal();

SU2_CFD/src/solvers/CNSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void CNSSolver::BC_HeatFlux_Wall_Generic(const CGeometry* geometry, const CConfi
472472
/*--- If it is a customizable patch, retrieve the specified wall heat flux. ---*/
473473

474474
if (config->GetMarker_All_PyCustom(val_marker))
475-
Wall_HeatFlux = geometry->GetCustomBoundaryHeatFlux(val_marker, iVertex);
475+
Wall_HeatFlux = geometry->GetCustomBoundaryHeatFlux(val_marker, iVertex) / config->GetHeat_Flux_Ref();
476476
else if (kind_boundary == HEAT_TRANSFER) {
477477
const su2double Twall = nodes->GetTemperature(iPoint);
478478
Wall_HeatFlux = Transfer_Coefficient * (Tinfinity - Twall);

0 commit comments

Comments
 (0)