💧 3D Fluid Dynamics (SPH) — Smoothed-Particle Hydrodynamics in a Volume
The same Smoothed-Particle Hydrodynamics kernel as the 2D original — density accumulated from neighbor distance via a cubic smoothing kernel, pressure derived from density error, gravity and boundary collisions — now solved over particles placed at real (x,y,z) coordinates inside a volumetric tank. Drag to push the fluid and watch the wave propagate in three dimensions; orbit the camera to see it from any angle.
This is the 3D companion to Fluid Sph 2D. It runs the identical Smoothed-Particle Hydrodynamics model — a cubic smoothing kernel (r−d)³ accumulates each particle's local density from every neighbor inside the smoothing radius, density error above a calibrated rest density is converted to pressure, and the pressure gradient between neighboring particles produces the force that pushes the fluid apart — but particles now sit at real (x,y,z) coordinates inside a volumetric tank and every distance, force direction and boundary collision is computed in true 3D, rendered live with Three.js/WebGL via instanced spheres.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install