Physics
SPH fluid
Smoothed-particle hydrodynamics: splashes, dam breaks, a draggable obstacle.

What happens
Water simulated as thousands of interacting particles: break a dam, collide two columns or drop a cube into a pool. Push the water with the left mouse button, drag the sphere through it, and tune viscosity, stiffness and gravity to change how it splashes.
Equations used in the module
Equations ρ_i = Σ_j m_j W(r_ij,h) a_pressure,i = −Σ_j m_j(p_i/ρ_i²+p_j/ρ_j²)∇W_ij p = B max(0,(ρ/ρ₀)^7−1) B = ρ₀c₀²/7


