Pressure
lowhigh

2D SPH Fluid โ€” Smoothed Particle Hydrodynamics, Side View

A real-time 2D fluid simulation built on Smoothed Particle Hydrodynamics: each particle carries a density and pressure computed from its neighbours with the planar Muller-2003 kernels (poly6 for density, spiky for pressure gradient, a viscosity Laplacian for internal friction), then falls under gravity and bounces off the floor and side walls. Drag through the liquid to push it and watch it pool, slosh and splash โ€” the same numerical method as the 3D tank, recomputed for a flat plane instead of a volume.