Fixing relaxation factor for conserved turbulent variables in SST model #2728
+81
−76
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
This fixes an issue introduced in #2525 where the under-relaxation factors for$k$ and $\omega$ were calculated incorrectly with the SST model.
Since the update for$k$ and $\omega$ is in terms of conserved transport quantities, their stored value must be multiplied by the local flow density when compared to the non-linear update. This was not the case previously, and the solver could overestimate the relative change and compute a much stricter relaxation factor.
This is particularly relevant to incompressible flow, such as the steam periodic flow tutorial case, where the density is several orders of magnitude. The consequence of this issue was a stalled convergence of the turbulence variables as discussed in #2594.
This issue did not affect problems using the SA model, which doesn't use a conserved quantity in its formulation, or where the normalized density is near unity.
Related Work
Related to #2525 and #2594
PR Checklist
Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.
pre-commit run --allto 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.