Implementation of LM model for SA and cross-flow corrections (LM2015)#1810
Implementation of LM model for SA and cross-flow corrections (LM2015)#1810pcarruscag merged 44 commits intodevelopfrom
Conversation
- Added cross-flow corrections through LM2015 model - Added correlation functions - Fixed some output bugs
|
Nice work already! If you click on 'Details' at the right of the failed Regression and Unit Testing cases you will see why they fail. I think one of the first things to do is go through these error messages ('variable may be used uninitialized', etc) and fix them so the regression tests will run. |
Thank you! I am in the middle of doing it. Hopefully, there are not that many issues. |
SU2_CFD/include/numerics/turbulent/transition/trans_sources.hpp
Outdated
Show resolved
Hide resolved
- Moved default correlation function to CConfig post processing - Added correct (?) Krause correlation functions as KRAUSE_HYPER
|
At the moment I am having trouble with a test case, thus it is still not ready to merge. I'll try to fix it as soon as possible. |
SU2_CFD/include/numerics/turbulent/transition/trans_sources.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_sources.hpp
Outdated
Show resolved
Hide resolved
|
Oh, and please consider adding a contribution to the V&V page (to also add a regression test for the new model). |
- Fixed Jacobian computation for LM2015 - Code refactoring
pcarruscag
left a comment
There was a problem hiding this comment.
The lm options look good 👍
pcarruscag
left a comment
There was a problem hiding this comment.
Thank you for the changes, this PR LGTM after you move the correlations to a common place and add a regression test.
SU2_CFD/include/numerics/turbulent/transition/trans_correlations.hpp
Outdated
Show resolved
Hide resolved
SU2_CFD/include/numerics/turbulent/transition/trans_sources.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
…ns.hpp Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
TestCases/transition/Prolate_Spheroid/transitional_SA_LM_model_ConfigFile.cfg
Outdated
Show resolved
Hide resolved
TestCases/transition/E387_Airfoil/transitional_SST_LM_model_ConfigFile.cfg
Outdated
Show resolved
Hide resolved
.github/workflows/regression.yml
Outdated
| with: | ||
| # -t <Tutorials-branch> -c <Testcases-branch> | ||
| args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}} | ||
| args: -b ${{github.ref}} -t feature_LM2015 -c develop -s ${{matrix.testscript}} |
There was a problem hiding this comment.
| args: -b ${{github.ref}} -t feature_LM2015 -c develop -s ${{matrix.testscript}} | |
| args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}} |
Proposed Changes
This branch implements the Langtry Menter transition model coupled to SA turbulence model (https://turbmodels.larc.nasa.gov/sa_gamma_retheta_3eqn.html). It also includes the transition induced by crossflow effects through the LM2015 implementation (https://turbmodels.larc.nasa.gov/langtrymenter_4eqn.html). The config options added are:
The turbulence index has been implemented for the turbulence models. It is used to detect transition when it is higher than 0. In theory, it should be equal to 1 for a fully-turbulent flow. However, in my simulations, this is not always the case, especially if SST is used (you can see in on the figure below). References are https://doi.org/10.1007/s10494-021-00288-5 for SST and https://doi.org/10.2514/6.1992-439 for SA.
Validation test cases will be uploaded in the following days.
The most important results can be found in the pdf of my presentation at the SU2 Conference 2022. https://polimi365-my.sharepoint.com/:b:/g/personal/10507725_polimi_it/EUswl9Jw0XhIuozrOjXqX6sBdscM30lRZ7mwMZcr5anvyA?e=41db5P
One recent result is the application of the transition model to the Sickle wing test case for -2.67° of the angle of attack.
SST+LM2015

SA+LM2015

The lower surface is represented on the left, whereas the upper surface is on the right. At the moment the wind tunnel walls have not been taken into account. This can explain the spanwise shift of the transition with respect to the experimental results. More results are incoming.
Please, any suggestions on how to clean up the code or on how to make it more efficient are very well accepted.
Related Work
Work is related to the PR #1751. It extends it to SA turbulence model and includes cross-flow effects (LM2015) and turbulence index computations.
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.