Programming, Science, Python, Mathematics, Towards Data Science.
following in every iteration: Set the time-step according to the CFL number criterion Set boundary conditions Calculate starred velocities Solve the pressure Poisson equation to get the pressure field Determine velocities at the next time-step Write results to file (if file flag is 1) Advance time