ppmpy.advection module#
a simple linear advection solver for testing
- advection(nx, u, C, *, num_periods=1, init_cond=None)[source]#
Evolve the linear advection equation using nx zones, a velocity u, and a CFL number C. You need to provide a function to compute the initial conditions, init_cond(g), where g is a FVGrid object