https://github.com/robert-leitl/gpgpu-2d-sph-fluid-simulation
2d smoothed-particle hydrodynamics (SPH) fluid simulation on the GPU in WebGL 2.
https://github.com/robert-leitl/gpgpu-2d-sph-fluid-simulation
gpu physics-simulation sph webgl
Last synced: 8 months ago
JSON representation
2d smoothed-particle hydrodynamics (SPH) fluid simulation on the GPU in WebGL 2.
- Host: GitHub
- URL: https://github.com/robert-leitl/gpgpu-2d-sph-fluid-simulation
- Owner: robert-leitl
- License: mit
- Created: 2022-10-10T08:30:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T12:18:46.000Z (over 3 years ago)
- Last Synced: 2025-04-03T20:03:53.119Z (about 1 year ago)
- Topics: gpu, physics-simulation, sph, webgl
- Language: JavaScript
- Homepage:
- Size: 1.73 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GPGPU 2D SPH Fluid Simulation

Rough implementation of a 2d smoothed-particle hydrodynamics ([SPH](https://en.wikipedia.org/wiki/Smoothed-particle_hydrodynamics)) fluid simulation on the GPU in WebGL 2.
[DEMO](https://robert-leitl.github.io/gpgpu-2d-sph-fluid-simulation/dist/?debug=true)
### Features
- GPGPU particles SPH simulation based on [WebGL-SPH Project](https://github.com/mjwatkins2/WebGL-SPH) by mjwatkins2
- Odd-even merge sorting [GPU Gems 2 Article](https://developer.nvidia.com/gpugems/gpugems2/part-vi-simulation-and-numerical-algorithms/chapter-46-improved-gpu-sorting)
- Offset list creation for cell lookup [Wicked Engine Dev Blog Article](https://wickedengine.net/2018/05/21/scalabe-gpu-fluid-simulation/)