A simple gas simulation

Based on Jos Stam's paper Real-Time Fluid Dynamics for Games and its implementation found here.

Simulates the Navier-Stokes equations for incompressible fluids.

Move the mouse over the canvas to introduce flow (to be used to simulate drone interacting with the gas), adjust the wind parameters on the right.

(Wind direction is in angles, anticlockwise)