Programming, Science, Python, Mathematics, Towards Data Science.
space.p[0,:]=bottom.value*space.dy+space.p[1,:] Before we write the finite difference functions, we need to determine a time-step to advance the simulation by. To ensure the convergence of finite difference methods, an upper bound on the time-step is provided by the Courant–Friedrichs–Lewy (CFL)