Press "R" To reset.

Press "X" to toggle wind.

Press "V" to toggle show velocities.

Click to inset dye and drag to move things around ;)

Right click and drag to pan around, scroll to zoom in and out. 

SPACE centers the view.

*It appears that Chromium based browser work best for this project.

A C++ project compiled to web assembly using olc::PixelGameEngine. 

StatusIn development
Rated 5.0 out of 5 stars
(1 total ratings)
Tagscpp, fluid, karmanvortex, maths, olcpge, Physics


Log in with to leave a comment.

Very nicely done! Are you using Lattice Boltzmann Method for this simulation or straight Navier Stokes? BTW: It works fine with my FireFox browser (WebGL?)

Hi there! Thank you :)
It is based on the Navier Stokes equations. Not perfectly accurate but fast enough for cool real time simulations. 
The solver which this is based on is described here:

Glad to know WebGL is more widely supported now!