DIRK2

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

Bases: DiagonallyImplicitRungeKutta

Two-stage, 2nd order Diagonally Implicit Runge-Kutta (DIRK) method.

This specific method is SSP-optimal (largest radius of absolute monotonicity for a 2-stage, 2nd order DIRK), symplectic, and A-stable. It’s a robust choice for moderately stiff problems where second-order accuracy is sufficient.

Characteristics

  • Order: 2

  • Stages: 2 (Implicit)

  • Implicit (DIRK)

  • Fixed timestep only

  • A-stable, SSP-optimal, Symplectic

When to Use

  • Moderately stiff problems: Good entry-level implicit method for stiff ODEs

  • SSP requirements with stiffness: Combines strong stability preservation with A-stability

  • Symplectic integration: Preserves geometric structure in Hamiltonian systems

  • Low-order implicit needs: When 2nd order implicit accuracy is sufficient

Trade-off: Lower order than ESDIRK or BDF methods but has SSP and symplectic properties. For higher accuracy on stiff problems, consider ESDIRK43 or BDF methods.

References