u/Nice-Sand-3230
i combined my sph model and n body simulation . *IN DEVELPMENT*
Any documentation on how to apply sph models into a n body simulations?
reddit.comAny documentation on how to apply sph models into a n body simulations?
reddit.comSPH fluid sim built from scratch in C++/CUDA + OpenGL, inspired by Sebastian Lague.
No prebuilt solver — physics implemented from scratch using Müller et al. 2003 equations
SSF renderer and simple sphere mode, switchable at runtime
Configurable UI — tune almost every parameter on the fly, dynamic sky, emitter controls
Hybrid sim time — runs realtime or stepped for long offline clips (for recording clips)
CUDA-OpenGL interop
REQUIRES NVIDIA GPU
uses only 3 terms : density, pressure and viscosity.
Optimized on RTX 2050 laptop— NVIDIA only, may have issues on other hardware.
1 million particles achievable in simulation mode.
SSF and UI production had AI assistance.
i wat made for interest in fluid dynamics and for astrophysics(n-body) project for future :)
if you like the project ,star my repo :XD
Eulerian grid-based smoke sim running real-time on the GPU.
What's under the hood:
- Semi-Lagrangian advection
- Gauss-Seidel pressure solve with SOR
- Vorticity confinement + buoyancy
- CUDA/OpenGL interop (zero-copy rendering)
Every kernel handwritten in CUDA. Every equation derived from scratch.