Skip to content

Aditya-Gamer011/accelerate-fluid-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6fe0d52 · · Mar 21, 2026

History

8 Commits
Jan 10, 2026
Mar 21, 2026
Jan 10, 2026
Mar 21, 2026

Repository files navigation


Accelerate-- Fluid Simulator

This is a fluid physics simulator I built to observe how different fluids interact with each other and certain obstacles- such as leaves, logs, and stones, under different settings on gravity.

It includes a set of 3 fluids- water, oil and honey.

Hold the left mouse button in the canvas while on inject mode to insert the liquid. Do the same on suck mode to remove the liquid.

Click on the add obstacle button to insert one of 3 different obstacles at random: Leaf (green), Log (brown), Stone (gray)

Use the gravity slider to adjust gravity levels for all entities.

It uses the FLIP solver concept. It can be understood in detail here: https://matthias-research.github.io/pages/tenMinutePhysics/

ps.- the reason different liquids fall with different speeds is because I imagine them flowing down from a black slate, instead of free-fall in space.

About

2D fluid dynamics simulation built from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published