Time stepper
#
homemade_conslaws.TimeStepper
— Type.
TimeStepper
Specifies how to advance the solution forward in time.
Dispatch functions
An implementation of TimeStepper
should provide the following functions:
#
homemade_conslaws.integrate!
— Function.
integrate!(::Grid, ::TimeStepper, system, compute_max_dt)
Advance the solution forward in time, mutating the cell averages in place. Returns the time step size used.
Implementations
Forward Euler
#
homemade_conslaws.ForwardEuler
— Type.
ForwardEuler{Cells}
The standard first order TVD forward Euler time-stepping scheme. Preallocates a buffer to store the time derivatives.
RK2
#
homemade_conslaws.RK2
— Type.
RK2{Cells}
A second order Runge-Kutta time-stepping scheme, a strong stability preserving version of the standard RK2 scheme, applying two steps of the forward Euler scheme. Preallocates two buffers to store intermediate values.