Skip to content

Commit

Permalink
Merge pull request #2295 from emaberman/fix_TurbReduc_adapt_cfl
Browse files Browse the repository at this point in the history
Fix CFL Turbulence reduction option for adaptive cfl
  • Loading branch information
emaberman authored Jul 11, 2024
2 parents dc4c70f + 5473518 commit 3cfd801
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Daumantas Kavolis
Dave Taflin
Eduardo Molina
Edwin van der Weide
Eitan Aberman
Ethan Alan Hereth
Florian Dittmann
Filip Hahs
Expand Down Expand Up @@ -108,6 +109,7 @@ Max Sagebaum
Michele Gaffuri
Mickael Philit
Mladen Banovic
Mor
Nat-1
Nicola Fonzi
Nijso Beishuizen
Expand Down Expand Up @@ -137,6 +139,7 @@ Trent Lukaczyk
Vinzenz Götz
VivaanKhatri
Wally Maier
Yair Mor-Yossef
Y. Chandukrishna
Zan Xu
Zcaic
Expand Down
3 changes: 2 additions & 1 deletion SU2_CFD/src/solvers/CSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1821,6 +1821,7 @@ void CSolver::AdaptCFLNumber(CGeometry **geometry,
/* Loop over all points on this grid and apply CFL adaption. */

su2double myCFLMin = 1e30, myCFLMax = 0.0, myCFLSum = 0.0;
const su2double CFLTurbReduction = config->GetCFLRedCoeff_Turb();

SU2_OMP_MASTER
if ((iMesh == MESH_0) && fullComms) {
Expand Down Expand Up @@ -1885,7 +1886,7 @@ void CSolver::AdaptCFLNumber(CGeometry **geometry,
CFL *= CFLFactor;
solverFlow->GetNodes()->SetLocalCFL(iPoint, CFL);
if ((iMesh == MESH_0) && solverTurb) {
solverTurb->GetNodes()->SetLocalCFL(iPoint, CFL);
solverTurb->GetNodes()->SetLocalCFL(iPoint, CFL * CFLTurbReduction);
}

/* Store min and max CFL for reporting on the fine grid. */
Expand Down
2 changes: 1 addition & 1 deletion TestCases/hybrid_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def main():
Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger"
Jones_tc_restart.cfg_file = "Jones_restart.cfg"
Jones_tc_restart.test_iter = 5
Jones_tc_restart.test_vals = [-6.594590, -2.792279, -14.336129, -8.776066, -11.371439, -5.845633, 73273, 73273, 0.019884, 82.491]
Jones_tc_restart.test_vals = [-6.614623, -3.001323, -14.336147, -8.776081, -11.382919, -5.852327, 73273, 73273, 0.019884, 82.491]
test_list.append(Jones_tc_restart)

# 2D axial stage
Expand Down
2 changes: 1 addition & 1 deletion TestCases/parallel_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ def main():
Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger"
Jones_tc_restart.cfg_file = "Jones_restart.cfg"
Jones_tc_restart.test_iter = 5
Jones_tc_restart.test_vals = [-6.594590, -2.792281, -14.336129, -8.776067, -11.371439, -5.845633, 73273, 73273, 0.019884, 82.491]
Jones_tc_restart.test_vals = [-6.614623, -3.001323, -14.336147, -8.776081, -11.382919, -5.852327, 73273, 73273, 0.019884, 82.491]
test_list.append(Jones_tc_restart)

# 2D axial stage
Expand Down
2 changes: 1 addition & 1 deletion TestCases/serial_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def main():
Jones_tc_restart.cfg_dir = "turbomachinery/APU_turbocharger"
Jones_tc_restart.cfg_file = "Jones_restart.cfg"
Jones_tc_restart.test_iter = 5
Jones_tc_restart.test_vals = [-6.594586, -2.792279, -14.336132, -8.776068, -11.371439, -5.845632, 73273, 73273, 0.019884, 82.491]
Jones_tc_restart.test_vals = [-6.614623, -3.001323, -14.336147, -8.776081, -11.382919, -5.852327, 73273, 73273, 0.019884, 82.491]
test_list.append(Jones_tc_restart)

# 2D axial stage
Expand Down

0 comments on commit 3cfd801

Please sign in to comment.