RKF21 (Fehlberg)

class pathsim.solvers.rkf21.RKF21(*solver_args, **solver_kwargs)[source]

Bases: ExplicitRungeKutta

Three-stage, 2nd order Runge-Kutta-Fehlberg method with embedded 1st order error estimate.

Characteristics

  • Order: 2 (propagating) / 1 (embedded)

  • Stages: 3

  • Explicit, adaptive timestep

Note

The cheapest adaptive explicit method available. The low order means the error estimate itself is coarse, so step-size control is less reliable than with higher-order pairs. Useful for rough exploratory runs of a new block diagram or when step size is dominated by discrete events (zero crossings, scheduled triggers) rather than truncation error. For production simulations, RKBS32 or RKDP54 are almost always preferable.

References