You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A 4th-order 5-stages 2-storage Runge-Kutta timestepper for time-stepping
295
+
`∂u/∂t = RHS(u, t)` via:
296
+
```
297
+
S² = 0
298
+
299
+
for i = 1:5
300
+
S² = Aᵢ * S² + dt * RHS(uⁿ, t₀ + Cᵢ * dt)
301
+
uⁿ += Bᵢ * S²
302
+
end
303
+
304
+
uⁿ⁺¹ = uⁿ
305
+
```
306
+
307
+
where `Aᵢ`, `Bᵢ`, and `Cᵢ` are the ``A``, ``B``, and ``C`` coefficients from
308
+
the LSRK tableau table at the ``i``-th stage. For details, please refer to
309
+
310
+
> Carpenter, M. H. and Kennedy, C. A. (1994). Fourth-order 2N-storage Runge–Kutta schemes, Technical Report NASA TM-109112, NASA Langley Research Center, VA.
311
+
312
+
!!! info "Usage"
313
+
The `LSRK54TimeStepper` is *slower* than the [`RK4TimeStepper`](@ref) but
314
+
with *less* memory footprint; half compared to [`RK4TimeStepper`](@ref).
315
+
316
+
If you are bound by performance then use [`RK4TimeStepper`](@ref); if your
317
+
simulation is bound by memory then consider using `LSRK54TimeStepper`.
0 commit comments