A command-line fluid simulation based on Fluid Simulation for Computer Graphics by Robert Bridson.
Fluid simulation and rendering with Smoothed Particle Hydrodynamics (SPH) is surprisingly straight-forward on modern computers. I put together a basic demo to show a bit about how it works.
A menger sponge created with asm.js and WebGL.