Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CFL Turbulence reduction option for adaptive cfl #2295

Merged
merged 7 commits into from
Jul 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
su2double CFLTurbReduction =config->GetCFLRedCoeff_Turb();
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved

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);
pcarruscag marked this conversation as resolved.
Show resolved Hide resolved
}

/* Store min and max CFL for reporting on the fine grid. */
Expand Down