Skip to content
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

Add SSPRK schemes with higher stage count #606

Merged
merged 40 commits into from
Dec 19, 2024

Conversation

JHopeCollins
Copy link
Member

These schemes have more stages than formal order, but in return have higher CFL limits. The CFL limit increases faster, so the CFL/stage ratio is improved for the higher stage count schemes.

e.g. the 3 stage 3rd order has CFL=1, i.e. effective CFL 1/3 per stage
4 stage 3rd order has CFL=2, so effective CFL 1/2 per stage.

@colinjcotter
Copy link
Contributor

Aren’t the critical Courant numbers dependent on polynomial degree?

@JHopeCollins
Copy link
Member Author

Aren’t the critical Courant numbers dependent on polynomial degree?

These are from this paper:
10.1137/S0036142901389025

The extra dofs from the additional stages can be used to increase the cfl limit

@colinjcotter
Copy link
Contributor

Those critical Courant numbers are for first order upwind I think.

There is a much more recent paper by Ern with bigger stable timesteps for DG.

@JHopeCollins
Copy link
Member Author

SSP CFL limits are always with the caveat of "only for spatial schemes which are stable with forward Euler" aren't they?

I will plot out the stability regions for the different schemes in the morning and we can see what they look like.

Do you have a link to that paper?

Copy link
Contributor

@tommbendall tommbendall left a comment

Choose a reason for hiding this comment

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

Thanks Josh, this could be really helpful for pushing the time step and doing subcycling

@colinjcotter
Copy link
Contributor

Ern, Alexandre, and Jean-Luc Guermond. "Invariant-domain-preserving high-order time stepping: I. Explicit Runge--Kutta schemes." SIAM Journal on Scientific Computing 44, no. 5 (2022): A3366-A3392.

@tommbendall tommbendall added enhancement Involves adding a new capability equation Adding or enhancing a new equation labels Dec 19, 2024
@JHopeCollins
Copy link
Member Author

JHopeCollins commented Dec 19, 2024

Looking at the stability plots, the higher stage count schemes do have larger stability regions along the imaginary axis as well as elsewhere, so they have higher CFL limits even for spatial schemes higher than 1st order (i.e. eigenvalues closer to the imaginary axis), even if they're no longer SSP. But the stage=order methods also lose SSP property if the spatial scheme isn't TVD.
So yes, exactly how much the efficiency would change for non-TVD spatial schemes would need to be either worked out for the specific scheme or found empirically, it wouldn't necessarily be the same as the effective SSP CFL.

Third order methods:
SSPRK3_stability
And along the imaginary axis:
SSPRK3_stability_imag

Fourth order, 5 stage method compared to the classic RK4 method:
SSPRK4_stability
Along the imaginary axis:
SSPRK4_stability_imag

Also the second order methods:
SSPRK2_stability
SSPRK2_stability_imag

@tommbendall tommbendall merged commit d61f81f into main Dec 19, 2024
4 checks passed
@tommbendall tommbendall deleted the JHopeCollins/more_ssprk_schemes branch December 19, 2024 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Involves adding a new capability equation Adding or enhancing a new equation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants