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
CategoryOther
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorO.B.L.
GenreSimulation
Tagscpp, fluid, karmanvortex, maths, olcpge, Physics

Comments

Log in with itch.io 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: http://graphics.cs.cmu.edu/nsp/course/15-464/Fall09/papers/StamFluidforGames.pdf

Glad to know WebGL is more widely supported now!