Skip to content

Time stepper

# homemade_conslaws.TimeStepperType.

TimeStepper

Specifies how to advance the solution forward in time.

source

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.

source

Implementations

Forward Euler

# homemade_conslaws.ForwardEulerType.

ForwardEuler{Cells}

The standard first order TVD forward Euler time-stepping scheme. Preallocates a buffer to store the time derivatives.

source


RK2

# homemade_conslaws.RK2Type.

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.

source