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.
Examples using
spectral.RK4#
Spatial and Temporal Convergence for Fourier KdV Solver
Spatial and Temporal Convergence for Fourier KdV Solver
Work-Precision Analysis: RK3 vs RK4 with Varying Grid Resolution
Work-Precision Analysis: RK3 vs RK4 with Varying Grid Resolution