DIRK2

class pathsim.solvers.dirk2.DIRK2(*solver_args, **solver_kwargs)[source]

Bases: DiagonallyImplicitRungeKutta

Two-stage, 2nd order DIRK method. L-stable, SSP-optimal, symplectic.

Characteristics

  • Order: 2

  • Stages: 2 (implicit)

  • Fixed timestep

  • L-stable, SSP-optimal, symplectic

Note

The simplest multi-stage implicit Runge-Kutta method. L-stability fully damps parasitic high-frequency modes, and the symplectic property preserves Hamiltonian structure when the dynamics are conservative. Two implicit stages per step is relatively cheap. For higher accuracy on stiff systems, use DIRK3 or the adaptive ESDIRK43.

References