Skip to content

Implementation of LM model for SA and cross-flow corrections (LM2015)#1810

Merged
pcarruscag merged 44 commits intodevelopfrom
feature_LM2015_model
Dec 19, 2022
Merged

Implementation of LM model for SA and cross-flow corrections (LM2015)#1810
pcarruscag merged 44 commits intodevelopfrom
feature_LM2015_model

Conversation

@rois1995
Copy link
Contributor

@rois1995 rois1995 commented Nov 8, 2022

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:

  1. KIND_TRANS_CORRELATION. It allows the selection among correlation models found in the literature for F_length and ReTheta_c variables. Values are MALAN, SULUKSNA, KRAUSE, MEDIDA_BAEDER, MEDIDA, MENTER_LANGTRY. It defaults to the MENTER_LANGTRY If the underlying turbulence model is SST or to MALAN in the case of SA. (Implemented)
  2. HROUGHNESS. RMS value of roughness for LM2015 transition model. It defaults to 1e-6m. (Implemented)
  3. CONVERTSA2SST. If the SA turbulence model is used, it is possible to use the LM version for SST by computing k and w from SA variables. Values: YES, NO. The default is NO. (Not yet Implemented)

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
Cf

SA+LM2015
Cf

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.

  • 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 have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

rois1995 added 2 commits November 7, 2022 10:08
- Added cross-flow corrections through LM2015 model
- Added correlation functions
- Fixed some output bugs
@rois1995 rois1995 changed the title Feature lm2015 model Implementation of LM model for SA and cross-flow corrections (LM2015) Nov 8, 2022
@bigfooted
Copy link
Contributor

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.

@rois1995
Copy link
Contributor Author

rois1995 commented Nov 9, 2022

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.

- Moved default correlation function to CConfig post processing
- Added correct (?) Krause correlation functions as KRAUSE_HYPER
@rois1995
Copy link
Contributor Author

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.

@pcarruscag
Copy link
Member

Oh, and please consider adding a contribution to the V&V page (to also add a regression test for the new model).

Copy link
Member

@pcarruscag pcarruscag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lm options look good 👍

Copy link
Member

@pcarruscag pcarruscag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the changes, this PR LGTM after you move the correlations to a common place and add a regression test.

rois1995 and others added 9 commits December 9, 2022 18:15
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>
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}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
args: -b ${{github.ref}} -t feature_LM2015 -c develop -s ${{matrix.testscript}}
args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@pcarruscag pcarruscag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pcarruscag pcarruscag merged commit 4e0dfb8 into develop Dec 19, 2022
@pcarruscag pcarruscag deleted the feature_LM2015_model branch December 19, 2022 17:25
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.

4 participants