pathsim.solvers.ssprk33 module

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

Bases: ExplicitRungeKutta

Three-stage, 3rd order, Strong Stability Preserving (SSP) explicit Runge-Kutta method.

Offers higher accuracy than SSPRK22 while maintaining the SSP property. A popular choice for problems where TVD properties are important or when a simple, stable 3rd order explicit method is needed.

Characteristics:
  • Order: 3

  • Stages: 3

  • Explicit (SSP)

  • Fixed timestep only

  • Good stability properties for an explicit 3rd order method.

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]