pathsim.solvers.ssprk33 module

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

Bases: ExplicitRungeKutta

Strong Stability Preserving (SSP) 3-rd order three stage (3,3) Runge-Kutta method

This integrator is more accurate and stable then SSPRK22 but also 50% more expensive due to 3 instead of 2 stages. Originally designed for hyperbolic PDEs, this is also a great choice if accuracy and stability and still good speed are important.

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]