MUSCL Ramp options by joshkellyjak · Pull Request #2639 · su2code/SU2

Proposed Changes

Added abilitiy to ramp MUSCL scheme from first to second order across specified number of iterations. Two methods are implemented, ITERATION and SMOOTH_FUNCTION. ITERATION varies based on the current iteration from starting to end iteration, SMOOTH_FUNCTION enables a smooth S-Curve according to a cosine function. The option for power controls how aggresively the ramp is applied.

For ITERATION:
Power < 1 results in quicker ramp up early then slower as it approaches final value
Power = 1 results in linear (ITERATION) or cosine (SMOOTH_FUNCTION) ramp
Power > 1 results in slow initial ramping and then faster towards end

Related Work

N/A

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.