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 d s_hat #2393

Merged
merged 11 commits into from
Dec 21, 2024
Merged

Fix d s_hat #2393

merged 11 commits into from
Dec 21, 2024

Conversation

emaberman
Copy link
Contributor

@emaberman emaberman commented Dec 9, 2024

Proposed Changes

The current limiting of (\hat{S}) in the source term of the Spalart-Allmaras (SA) model follows the guidelines from "Modifications and Clarifications for the Implementation of the Spalart-Allmaras Turbulence Model" (Note 1, option c) source. This approach introduces two conditional branches for defining (\hat{S}). However, the derivative of (\hat{S}) used in the Jacobian is inconsistent with these branches.

We propose to modify this to ensure consistency between (\hat{S}) and its derivative in the Jacobian.

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.

  • 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.

@emaberman emaberman closed this Dec 9, 2024
@emaberman emaberman deleted the fix_dShat branch December 9, 2024 16:37
@emaberman emaberman restored the fix_dShat branch December 9, 2024 16:39
@emaberman emaberman reopened this Dec 9, 2024
@emaberman emaberman changed the base branch from master to develop December 9, 2024 16:47
@emaberman emaberman added the bug label Dec 9, 2024
@pcarruscag pcarruscag removed the bug label Dec 15, 2024
@pcarruscag
Copy link
Member

@emaberman are you planning to update the regression tests?

@emaberman
Copy link
Contributor Author

@emaberman are you planning to update the regression tests?

yes. I haven"t forgotten about this, I will get to it..

@pcarruscag pcarruscag changed the title Fix d shat Fix d s_hat Dec 18, 2024
@pcarruscag pcarruscag merged commit 18b07ac into su2code:develop Dec 21, 2024
34 of 35 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.

3 participants