u/Nice-Sand-3230

▲ 221 r/IndianTechCentral+4 crossposts

SPH 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

GitHub: https://github.com/NobodyBuilds/fluid_sim

u/Nice-Sand-3230 — 15 days ago
▲ 124 r/Simulated

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.

Source: https://github.com/NobodyBuilds/smoke\_simulation

u/Nice-Sand-3230 — 1 month ago