Skip to content

Commit c3444c8

Browse files
authored
Merge pull request #2078 from j-signorelli/develop
Custom Python wrapper marker BC values appropriately nondimensionalized
2 parents 8105a75 + 84f9227 commit c3444c8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

SU2_CFD/src/solvers/CHeatSolver.cpp

Lines changed: 2 additions & 2 deletions
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
}
@@ -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: 2 additions & 2 deletions
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);
@@ -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)