-
Notifications
You must be signed in to change notification settings - Fork 910
MUSCL Ramp options #2639
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
base: develop
Are you sure you want to change the base?
MUSCL Ramp options #2639
Conversation
|
Cool, do you have a testcase as well? I guess ramping is always good for convergence when you want second order MUSCL? |
Not something coarse enough to be uploaded to GitHub but I will adapt one of the available testcases for this purposes. I mainly implemented this for running cases in an optimisation loop without having to implement some method to restart if you want to go from first to second order Roe scheme. In my experience, if your case can handle second order from the start it is already going to converge pretty well but ramping may improve the the convergence - as long as you don't set too large a ramp. At the minute my determination of the coefficients for the ramp are more of an art rather than a science. |
… added ulong array config options and updated muscl ramp coeffs
|
Added testcase and update documentation |
|
I do that in the Newton-Krylov startup period. At the end of the startup the CFL is reset to the initial value. |

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.
pre-commit run --allto format old commits.