mobile-fluid-sim Svelte Themes

Mobile Fluid Sim

A real-time fluid simulation that runs in your browser and reacts to mobile device sensors.

mobile-fluid-sim

A real-time fluid simulation that runs in your browser and reacts to mobile device sensors. Built using the FLIP (Fluid-Implicit-Particle) technique for realistic fluid dynamics.

Try it live at fluid.sh4jid.me

Demo

About

This project implements fluid simulation techniques taught by the amazing Ten Minute Physics YouTube channel, particularly from this video.

The initial inspiration for this project came from Nicholas L. Johnson's flip-card project.

Since creating this simulation, it has become my go-to digital fidget toy. You can install it as a PWA too!

Todo

  • Add more interaction options
    • Change color with shake
    • Control flow with finger
  • Add viscosity control

Support

If you enjoy this project, consider buying me a coffee!

Development

pnpm install
pnpm dev

License

MIT License - see LICENSE file for details.

Contributing

Pull requests are welcome! Feel free to contribute improvements or new features.

Top categories

Loading Svelte Themes