entropy bits

0

complexity apparent

0

mixedness

0

absolute coarse-grained values are small (immiscible cream and coffee); the sparklines are auto-scaled so the rise of entropy and the rise-and-fall of complexity are visible.

entropy and complexity over time

each axis auto-scaled: entropy rises, complexity peaks then falls
entropy (left)apparent complexity (right)

Entropy, and why it rises

Sean Carroll uses a cup of coffee with a splash of cream as the cleanest everyday picture of the second law of thermodynamics. The unmixed cup is ordered and improbable; left alone, or stirred, it drifts toward the overwhelmingly more numerous mixed configurations. That drift is the increase of entropy.

To put a number on it we coarse-grain: bin the cup into a grid of voxels and, for each voxel, take the cream fraction cc and its binary Shannon entropy. The entropy of the cup is the particle-weighted average over voxels. It is low when each voxel is nearly pure coffee or pure cream, and maximal when every voxel sits near a fifty-fifty mix.

H(c)=[clog2c+(1c)log2(1c)]H(c) = -\left[c\,\log_2 c + (1-c)\,\log_2(1-c)\right]

Entropy is defined relative to the coarse-graining. The grid is the observer. This is not a flaw in the analogy; it is the physics.

The rise and fall of complexity

Entropy climbs monotonically, but the cup does not get more interesting to look at the whole way. Watch the three stages: cream layered on coffee (simple), then a moment of intricate filaments and tendrils (complex), then a flat uniform brown (simple again). The interesting structure lives in the middle.

We track that with two quantities. Mixedness is how close a voxel is to an even mix; apparent complexity is the local concentration gradient weighted by mixedness, averaged over the cup. It is near zero when the cup is layered (almost no gradient that is also mixed) and near zero again when uniform (no gradient at all), and it peaks while the filaments form.

mixedness=12c1\text{mixedness} = 1 - |2c - 1|
complexity    c×mixedness\text{complexity} \;\propto\; \overline{|\nabla c|}\,\times\,\text{mixedness}

Entropy goes up and stays up. Apparent complexity goes up and comes back down. The high-entropy end state is visually the simplest.

Reading the cup

Pour cream, then choose when to stir. The overlay tracks entropy and complexity live; the chart below the cup shows their histories on the same time axis, so you can see entropy plateau while complexity crests and falls. The five presets move through the regimes: a quiet pour, diffusion-only settling, a hard continuous stir, and thick or watery fluids that move the complexity peak earlier or later.

What this is and is not

This is a real particle fluid (about sixty thousand particles with buoyancy, pressure, diffusion, and a stirring vortex) rendered as a liquid surface, with honest coarse-grained metrics and no cosmetic rescaling. It is still a toy: coffee and cream are a binary species, the pressure is a soft penalty rather than a true incompressible solve, and the apparent-complexity measure is one choice among many, so only its qualitative shape is meant to be trusted. Because cream and coffee stay as separate particle domains rather than dissolving molecule by molecule, the absolute coarse-grained entropy stays small, so the overlay sparklines and the time-series chart auto-scale to make the rise of entropy and the rise-and-fall of complexity legible. There is no parameter sweep or sensitivity tornado, because a live stochastic fluid has no single deterministic number per setting to sweep; the time-series is the evidence instead.

One last point Carroll makes: the second law does not forbid local order. The cup reaches equilibrium, but Earth does not, because it is an open system that takes in low-entropy sunlight and radiates high-entropy heat to space. Life lives on that flow.

Three phases of the mix

The three glasses in the photograph are three moments in one process. The coarse-grained entropy climbs across them; the apparent complexity rises and then falls.

layered: cream resting on coffee, just poured.

entropy near zero, apparent complexity low

swirling: filaments and tendrils at their most intricate.

entropy climbing, apparent complexity at its peak

uniform: fully mixed, a flat milky brown.

entropy near its ceiling, apparent complexity collapsed

Calibration

The live fluid is stochastic, so there is no single number per setting to fit. What is exactly checkable is the coarse-grained metric itself. Each case below reruns the entropy and complexity math (the same formulas the GPU runs) on a known voxel field for one of the three mixing stages, and checks it against the closed-form value. Entropy climbs across the stages; complexity peaks in the middle.

Model

claude opus 4.8June 2026·brings the WebGPU coffee-and-cream fluid onto the playground template: PlaygroundLayout, black-and-lime palette, honest coarse-grained entropy and complexity with no cosmetic rescaling (auto-scaled charts instead), five named presets, snapshot comparison, the entropy-and-complexity time-series, nine assumptions, a qualitative reading of the three mixing phases, and a research companion.
v1.0June 2026
  • particle fluid: about sixty thousand SPH-style particles (coffee sinks, cream floats) with density and pressure passes, Brownian diffusion, a stirring vortex with secondary helical flow, and viscous damping, inside a cylindrical glass.
  • screen-space fluid rendering: a particle depth map, bilateral smoothing, color blur, and a glass overlay turn the particles into a cohesive liquid surface.
  • metrics by coarse-graining: the cup is binned into a 32-cubed voxel grid; per voxel the cream fraction gives a binary Shannon entropy and a mixedness, and the concentration gradient times mixedness gives an apparent-complexity proxy.
  • the signature result: the coarse-grained entropy climbs while apparent complexity rises and then falls; both are small in absolute terms (immiscible cream and coffee form separate particle domains), so the overlay and chart auto-scale to reveal the shapes.
  • five presets traverse the mixing regimes: fresh pour, gentle settle, vigorous stir, thick, and watery.