Skip to content

Latest commit

 

History

History
16 lines (7 loc) · 876 Bytes

README.md

File metadata and controls

16 lines (7 loc) · 876 Bytes

fluid-sim

fluid simulator using processing!

reference: https://mikeash.com/pyblog/fluid-simulation-for-dummies.html

a fluid simulation made using mike ash's guide, but changed to two dimensions. this sim is based on the navier-stokes equations for fluid dynamics :)

by dragging your mouse around, you add "dye" into the fluid environment, which has a different density of the base fluid. this interacts with the rest of the fluid, demonstrating diffusion, advection, and projection. i recommend reading the linked paper to understand these more!!

there is a video demo in this repository, but to try it yourself, make sure you have processing installed, and then you can download the source code and run it!

Screenshot 2023-07-28 124512