SSPRK33

class pathsim.solvers.ssprk33.SSPRK33(*solver_args, **solver_kwargs)[source]

Bases: ExplicitRungeKutta

Three-stage, 3rd order optimal SSP Runge-Kutta method.

The unique optimal three-stage, 3rd order SSP scheme. Commonly paired with WENO and ENO spatial discretisations for hyperbolic conservation laws.

Characteristics

  • Order: 3

  • Stages: 3

  • Explicit, fixed timestep

  • SSP coefficient \(\mathcal{C} = 1\)

Note

The standard SSP time integrator for method-of-lines PDE discretisations inside ODE blocks. If the spatial operator is TVD under forward Euler, this method preserves that property at the same timestep restriction. When stability is borderline, SSPRK34 allows roughly twice the timestep at the cost of one extra stage.

References

interpolate(r, dt)[source]

Interpolate solution after successful timestep as a ratio in the interval [t, t+dt].

This is especially relevant for Runge-Kutta solvers that have a higher order interpolant. Otherwise this is just linear interpolation using the buffered state.

Parameters:
  • r (float) – ration for interpolation within timestep

  • dt (float) – integration timestep

Returns:

x – interpolated state

Return type:

numeric, array[numeric]