Skip to content

Commit 84f9227

Browse files
committed
Nondimensionalize Python custom temperatures correctly
1 parent aeafb37 commit 84f9227

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
@@ -377,7 +377,7 @@ void CHeatSolver::BC_Isothermal_Wall(CGeometry *geometry, CSolver **solver_conta
377377
SU2_OMP_FOR_STAT(OMP_MIN_SIZE)
378378
for (auto iVertex = 0ul; iVertex < geometry->nVertex[val_marker]; iVertex++) {
379379
if (IsPyCustom) {
380-
Twall = geometry->GetCustomBoundaryTemperature(val_marker, iVertex);
380+
Twall = geometry->GetCustomBoundaryTemperature(val_marker, iVertex) / config->GetTemperature_Ref();
381381
}
382382
IsothermalBoundaryCondition(geometry, solver_container[FLOW_SOL], config, val_marker, iVertex, Twall);
383383
}

SU2_CFD/src/solvers/CNSSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ void CNSSolver::BC_Isothermal_Wall_Generic(CGeometry *geometry, CSolver **solver
710710
thermal_conductivity, There, Temperature_Ref);
711711
}
712712
else if (config->GetMarker_All_PyCustom(val_marker)) {
713-
Twall = geometry->GetCustomBoundaryTemperature(val_marker, iVertex);
713+
Twall = geometry->GetCustomBoundaryTemperature(val_marker, iVertex) / Temperature_Ref;
714714
}
715715

716716
/*--- Compute the normal gradient in temperature using Twall ---*/

0 commit comments

Comments
 (0)