Skip to content

Commit 939faa1

Browse files
author
rois1995
committed
- add upper bound into BCs
1 parent f159412 commit 939faa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ void CTurbSSTSolver::BC_HeatFlux_Wall(CGeometry *geometry, CSolver **solver_cont
487487
su2double beta_1 = constants[4];
488488
su2double solution[MAXNVAR];
489489
solution[0] = 0.0;
490-
solution[1] = 60.0*laminar_viscosity/(density*beta_1*pow(wall_dist,2));
490+
solution[1] = min(60.0*laminar_viscosity/(density*beta_1*pow(wall_dist,2)), upperlimit[1]);
491491

492492
/*--- Set the solution values and zero the residual ---*/
493493
nodes->SetSolution_Old(iPoint,solution);

0 commit comments

Comments
 (0)