This project is intended to be a fluid simulator based on the Smoothed Particle Hydrodynamics technique.
npm start
Change the "Physical properties" of Particle
class to see new behaviour. Also try updating the boundary conditions in the same class' step
method.
Ideas to make it better (not sequential and possibly exclusive):
-
Use
BufferGeometry
of Three and draw usingPoints
; this instead of making every particle be anObject3D
heir. -
Get rid of Three and use vanilla WebGL.
-
Delegate SPH computing to shaders.
-
Explore the possibility of using:
- WebWorkers
- gpu.js
- WebAssembly
If you want to contribute, you are more than welcome. Please fork and submit a fork request.
This project is licensed under GNU GPLv3.
- Jonathan Ginsburg [email protected]
- Sebastian Galgera
- Ph.D. Octavio Navarro