Repository navigation
Apply the LM scaling of the SST k destruction to its Jacobian - #3040
Merged
rois1995 merged 2 commits intoNov 24, 2026
Merged
Conversation
Contributor
|
@Syphonicc thanks, the change looks good to me. Once the CI finishes, please update the values of the failing tests. |
Contributor
Author
rois1995
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
With the LM transition model, the k destruction of SST is scaled by the effective intermittency in the residual,
but its Jacobian entries
Jacobian_i[0][0]andJacobian_i[0][1](l.1022-1023) kept the unscaledbeta_starterms. 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):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_T3Amalso 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_sstandtutorial_trans_e387_sst_asando not change within their 20 and 2 iterations, andtutorial_trans_e387_sa(SA + LM) is not affected.Related Work
#2150
PR Checklist
pre-commit run --allto format old commits.