Skip to content

MehdiSaffar/webgpu-sph

Repository files navigation

Fluid simulator app with WebGPU API

2024-04-18_15-03-15.mp4

This project is a fluid simulator application written in WebGPU, utilizing the Smoothed Particle Hydrodynamics (SPH) technique for simulation.

You can play around with the app at webgpu-sph.vercel.app.

The frontend is developed using SvelteKit, Flowbite, and TailwindCSS. It is bundled with Vite. The simulation and rendering are entirely done in WebGPU, providing a fast and efficient fluid simulation experience.

This project was inspired by Sebastian League's Coding Adventure video about Fluid Simulation.

Developing

# 1) Install dependencies
npm install
# 2) Start a development server
npm run dev
# 3) Open browser at the URL shown in the terminal

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview .

Contact

For inquiries or collaborations, feel free to reach out to me on LinkedIn.

Developed by Mehdi Saffar.

About

A fluid simulator than runs inside your browser! Based on Smoothed Particle Hydrodynamics, accelerated by WebGPU API.

Topics

Resources

License

Stars

Watchers

Forks