Presets
Playback
Parameters
Camera
Layers
Quality
Model check
The science
Why an hourglass keeps time. Water leaves a hole faster when the tank is full (Torricelli, v = sqrt(2 g h)). Dry grains do not: the weight of the column is carried by the container walls, so the pressure at the bottom saturates (Janssen, 1895): p(z) = (rho g R / (2 mu K)) (1 - exp(-2 mu K z / R)), with wall friction mu, Janssen ratio K and silo radius R. For a shallow head p is close to rho g z, for a deep one it is the constant rho g R / (2 mu K). The graph on the right compares both. Because the pressure at the orifice no longer depends on the head, the mass flow is constant until the bulb is nearly empty.
Beverloo law (1961). The measured discharge through a circular hole of diameter D in a flat-bottomed hopper is W = C rho_b sqrt(g) (D - k d)^(5/2), with grain diameter d, bulk density rho_b, C about 0.58 and k about 1.4. Dimensional reasoning gives the exponent: sand falls freely from an arch of size D, so its speed is about sqrt(g D), the open area is about D^2, hence W ~ rho sqrt(g) D^(5/2). The term k d is the empty annulus at the edge of the hole. Below D/d of about 4 to 6 the grains form arches and the flow blocks; the sim sets the flow to zero below 4.5 and marks the 4.5 to 6 range as intermittent.
Surfaces. The upper sand has a flat shelf at height h and a central funnel z = c + tan(phi) r (funnel flow: the middle empties first and the outer sand slides in). The lower sand forms a cone z = apex - tan(phi) r at the angle of repose phi (about 34 degrees for dry sand). Their heights are found by bisection so that the volume integrated over the real glass profile equals mass / bulk density.
What is simplified. The sand is a continuum with constant bulk density, not 100 000 grains; the stream is drawn with representative grains (the real stream has about 10^4 grains per second at the default settings, and its length is the free-fall distance from the orifice to the pile apex). The Beverloo constants C and k are empirical and depend on grain shape and roughness. The flow rate stays constant to the last grain, whereas real hourglasses show a small drop and some fluctuation near the end. After a flip the sand is assumed to slump flat at once. The Janssen curve uses K = 0.4 and a wall friction angle of 20 degrees as typical values, and the mean head is the sand volume divided by the cross-section.
Time warp multiplies the clock of the mass balance only; the falling stream is always drawn at a viewable speed.
Numerical checks (run on load): the volume of the drawn meshes against mass / density; the log-log slope 2.5 and the sqrt(g) scaling from running the stepper to empty; the angle of repose read back from the mesh; and the Janssen and Beverloo limits.