spectral.RK4#
- class spectral.RK4[source]#
Bases:
TimeIntegratorClassical 4th-order Runge-Kutta method (ERK4).
The classical explicit four-stage fourth-order Runge-Kutta method. This is one of the most widely used explicit time integrators, offering a good balance between accuracy and computational cost.
Notes
The method evaluates the right-hand side four times per step at intermediate stages. It is 4th-order accurate and suitable for a wide range of initial value problems, though it lacks special stability properties like SSP methods.
References
Engsig-Karup, “Lecture 5: Initial Value Problems”, p. 58
Methods
__init__Initialize time integrator.
Take one time step.