Fluid simulation demo written in Rust, Glium and GLSL. The Navier-Stokes-equations are computed with Stam's method. Details of the implementation can be found in the GPU-Gems article.
There is also a live demo compiled with Emscripten.
Feel free to customize the demo.
GPU Gems: http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch38.html
Original WebGL demo: https://github.com/PavelDoGreat/WebGL-Fluid-Simulation