2D Smooth Particle Hydrodynamics Fluid Simulation

Produced for my fourth year Animation module, this coursework was based on this paper by Müller et al

2D particle sim
Simulation with 200 particles

Unlike other grid-based fluid simulations methods, here fluids are discretised into particles with a certain mass. SPH updates field quantities at discrete locations (the particle’s location) by interpolating the contributions of surrounding particles, scaled by a smoothing kernel. For fluids, the paper describes a formula based on the Navier-Stokes equation using three force density fields modelling pressure, viscosity and external forces.
This was a very interesting piece of coursework and is one I would like to revisit, there are some aspects of the simulation I would like to improve: