-
Notifications
You must be signed in to change notification settings - Fork 918
Langtry and Menter transition model #1751
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
Conversation
update LM Model for v7.40
|
Thanks @sun5k, the merge conflicts were probably a bit challenging because some files were moved with the other work we were doing on turbulence. After that please consider adding your results to our V&V page https://su2code.github.io/vandv/home/ |
cleaning
|
@sun5k Great work! |
Co-authored-by: Wally Maier <wallytmaier@gmail.com>
Cleaning the code. Co-authored-by: Wally Maier <wallytmaier@gmail.com>
Cleaning the code. Co-authored-by: Wally Maier <wallytmaier@gmail.com>
Cleaning the code. Co-authored-by: Wally Maier <wallytmaier@gmail.com>
Cleaning the code. Co-authored-by: Wally Maier <wallytmaier@gmail.com>
Cleaning the code. Co-authored-by: Wally Maier <wallytmaier@gmail.com>
code cleaning
TobiKattmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sun5k ,
thanks for this fresh push on this feature. Below a few stylistic comments which are easily incorporated and just require a little attention to detail. Please also apply the general idea of my comments wherever possible and reasonable.
A regression test to your work is certainly necessary, but as you already have nice results this should not be too much effort. As pedro mentioned, an addition to the V&V repository would be absolutely awesome :)
Thanks for this work so far, Tobi
Bonus: When you apply clang-format to the fully added files (and maybe CTransLMSolver.cpp), you might note the style and apply that to other places in this PR.
SU2_CFD/include/numerics/turbulent/transition/trans_diffusion.hpp
Outdated
Show resolved
Hide resolved
SU2_CFD/include/numerics/turbulent/transition/trans_sources.hpp
Outdated
Show resolved
Hide resolved
SU2_CFD/include/numerics/turbulent/transition/trans_convection.hpp
Outdated
Show resolved
Hide resolved
….hpp Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
Co-authored-by: TobiKattmann <31306376+TobiKattmann@users.noreply.github.com>
|
@sun5k please take care of the two comments above from my last review, and add regressions for your 2 tutorials (see what is done in TestCases/tutorials.py. Then I think we can merge this PR! |
I'm seeing TestCases/tutorials.py. I have some questions about the code. I guess, I can't understand this whole sentence. Could you explain what's meaning? |
This is the line with the nr of iterations, residuals, etc. If you run the case, you will see them printed to the screen. The values in *.test_vals should match with the values on the screen that you get at iteration number *.test_iter By the way, you can run python serial_regression.py or any of the other regression tests on your local machine to see what it does, although for some cases you might see a difference in residuals due to differences with the version compiled for github/docker. If you want to run the regression test exactly in the same environment as on github, you need to use docker. |
Remove unused variables and modify Set_Intermittency() function.
Modify function
update
Tutorial cases for Langtry and Menter transition model.
T3A- to T3Am
pcarruscag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the test.
Please add your name to the file AUTHORS.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change INNER_ITER= 10000 to ITER= 10000 on both config files via a new PR to Tutorials, this is why the cases are running for too long.
The test script modifies the number of iterations, but it looks for ITER instead of INNER_ITER.
Add my name.
Change number of the iteration.
|
Thanks for the thorough code review. |
Hi, all.
This PR is resuming the #1592 I'm not familiar with the git, so the branch is unfortunately merged.
"[WIP] Develop for Langtry and Menter transition model. #1592" was merged while trying to update my remote repository to v7.40. I'm not good at using GitHub, so I'm sorry for this situation.
My remote repository(forked) is not synchronized with v7.40, and I don't know what the problem is. So, I will delete the forked repository and fork it again to PR with the same name and content. Fortunately, the LM model updated to v7.40 obtained the same residuals and results as the previous v7.3.1.
Current State
Code is well running and, validation is almost done.
V&V cases: T3A, T3A-, NLF
Flow conditions are the reference from: https://doi.org/10.2514/6.2022-3679.
The grids of T3A and NLF cases are provided by TMW(Transition Model Workshop). And I made the grid of T3A- myself.
To validate the LM model, the simulation results of SU2 are compared with the results of Fluent19.0 with a similar numerical setting.
Here is the numerical scheme :
Some high-resolution grid-level results are missed because I don't have enough computational resources.
Here is Result
T3A :
T3A-:
The gird test result is not converged, but It's enough to compare the model.
NLF :


AoA 0 case is shown. In this case, the flow separation occurred on the upper surface. So, not fully converged, and I show only Fine level grid results according to the number of iterations.
Zoom to the separation region :
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.