Skip to content

Apply the LM scaling of the SST k destruction to its Jacobian - #3040

Merged
rois1995 merged 2 commits into
su2code:developfrom
Syphonicc:fix-sst-lm-destruction-jacobian
Nov 24, 2026
Merged

rois1995 merged 2 commits into
su2code:developfrom
Syphonicc:fix-sst-lm-destruction-jacobian

Conversation

@Syphonicc

Copy link
Copy Markdown
Contributor

Proposed Changes

With the LM transition model, the k destruction of SST is scaled by the effective intermittency in the residual,

dk = min(max(eff_intermittency, 0.1), 1.0) * dk;   // turb_sources.hpp l.1005

but its Jacobian entries Jacobian_i[0][0] and Jacobian_i[0][1] (l.1022-1023) kept the unscaled beta_star terms. In laminar regions the k-destruction Jacobian was therefore up to 10 times larger than the derivative of the residual. This PR applies the same factor to both entries. Only the Jacobian changes, so only convergence is affected.

As discussed in #2150 (the hybrid RANS-LES branch there already applies the factor), this is the fix for the RANS branch on develop.

Found by checking the source-term Jacobians against the derivative of the code's own residual at 50 significant digits: the SST+LM Jacobian mismatch goes from up to 9x (relative) to round-off with this change.

Results

T3A flat plate tutorial (SST + LM), current develop before and after, 10000 iterations (the config's limit; neither run reaches its CONV_RESIDUAL_MINVAL= -11):

iteration rms[k] before rms[k] after rms[w] before rms[w] after
1000 -4.32 -4.33 0.70 -0.19
6000 -5.05 -6.19 0.69 -1.54
9999 -5.05 -7.47 0.69 -2.02

Before, the k and omega residuals stall; after, they keep decreasing. rms[Rho] ends at -7.55 before and -7.63 after.

Regression tests

  • transitional_flatplate_tutorial_T3A (tutorials.py): updated. With develop, the same local setup (2 ranks, Tutorials develop) reproduces the stored values.
  • transitional_flatplate_tutorial_T3Am also changes, but its stored values are not reproduced on my machine even with develop, so I will take the new values from CI.
  • tutorial_trans_e387_sst and tutorial_trans_e387_sst_asan do not change within their 20 and 2 iterations, and tutorial_trans_e387_sa (SA + LM) is not affected.

Related Work

#2150

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

@rois1995

Copy link
Copy Markdown
Contributor

@Syphonicc thanks, the change looks good to me. Once the CI finishes, please update the values of the failing tests.

@Syphonicc

Copy link
Copy Markdown
Contributor Author

@rois1995 thanks. Only transitional_flatplate_tutorial_T3Am failed; I updated its values from the CI output in be5d87d.

@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995 rois1995 changed the title Apply the LM scaling of the SST k destruction to its Jacobian Apply the LM scaling of the SST k destruction to its Jacobian Nov 24, 2026
@rois1995
rois1995 merged commit eb19777 into su2code:develop Nov 24, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants