← return to main model page
NON-EQUILIBRIUM THERMODYNAMICS
inject energy locally and watch it relax back toward equilibrium
a driven, non-equilibrium companion to the Einstein solid
Details
The same N = 3P array of P atoms (three x/y/z oscillators each), built to be knocked out of equilibrium. The Q quanta hop only between lattice-adjacent atoms by default — a diffusion process, not the well-stirred mixing of the equilibrium model — so click any atom to inject energy, or load one face of the cube hot and the rest cold, and watch the gradient diffuse inward rather than vanish instantly. A quantum hops from an oscillator holding n quanta to one holding m at a rate proportional to n(m + 1), the bosonic rule that follows from the harmonic-oscillator ladder operators, so hot atoms shed energy fastest; the equilibrium it relaxes to is the same Boltzmann distribution. The live entropy readout tracks the multiplicity of the current configuration climbing toward its fixed-energy ceiling — the Second Law, frame by frame.
"LIVE" ENTROPY (current configuration)
S/k = {{ entropyLive }} Ln W of PC {{ entropyEq }}
S/k = ln(multiplicity) of the current occupation pattern; Ln W of PC = ln(multiplicity) of the single most-likely (predominant) pattern at this total energy
{{ spatialNoteLabel }}
All three numbers here are the same kind of quantity — log-multiplicity, S/k = ln(microstates) — applied to different things. "Live" S/k counts only the one exact microstate you're looking at right now (which oscillator holds which energy level) — not an average over the whole ensemble of microstates the system could be in. Ln W of PC is that same count applied to the single most-likely (predominant) configuration at this total energy — the equilibrium value live climbs toward as the system relaxes. "Local" entropy applies the live count separately to each half of the lattice, using only that half's own oscillators. Because live only counts by energy level, never by position, a left(hot face)/right split and a fully mixed lattice with the exact same energy-level histogram are literally two individual microstates in that same count — global S/k can't tell them apart. Local entropy fixes that by scoring each half separately, and the shortfall — global S/k minus (left + right) — is an exact, calculable quantity: the entropy of mixing, i.e. log of the number of ways the lattice's overall level-by-level counts could be divided into a left group and a right group of these two sizes while matching the split you're currently looking at. It is always ≥ 0 (global ≥ sum of halves; equal only in degenerate cases like every oscillator at the same level), and it is largest when the two halves are close to equal size — a lopsided split (say 1 oscillator vs. everything else) barely constrains anything, so there is little "which side" ambiguity left to lose.
"LOCAL" ENTROPY (left half + right half)
left (hot face) {{ shotStr }} right {{ scoldStr }} sum {{ sumStr }}
per-osc. {{ shotPerStr }} per-osc. {{ scoldPerStr }}
{{ halvesNoteLabel }}
the two halves may not be exactly the same size for odd p, so raw totals alone can look uneven even at true equilibrium — compare the per-oscillator figures for actual hotness
OCCUPATION HISTOGRAM (whole array)
{{ histNoteLabel }}
bars = # oscillators (of M = {{ boltzmannM }} here) currently at each energy level n (x-axis, rescaled to the highest occupied level; n = quanta on that one oscillator, not the lattice total) · blue line = ideal Boltzmann shape M(1−a)·a^n for the current total energy, a = e^(−ħω/kT)
SINCE LAST PERTURBATION — S/k (purple) · Ln W of PC (dashed) · half-sum (tan dashed) export CSV
orange event line = hot face / inject · green = re-thermalize
left half (red, hot face) · right half (blue) — per oscillator
drag to rotate · scroll or pinch to zoom · click an atom to inject energy
PARAMETERS
the equilibrium controls below set the starting state; use PERTURBATIONS to knock it out of equilibrium and watch it relax
Temperature T{{ tStr }}
{{ tempNote }}
why T = dE/dS? full derivation →
Amplitude{{ aStr }}
ground-state swing · {{ aMin }} – {{ aMax }} of lattice spacing
Frequency ω{{ sStr }}
oscillation rate · {{ sMin }} – {{ sMax }} Hz
ON-AXIS
REALISTIC 3-D
same physics either way — on-axis swings each atom along whichever of its x/y/z holds the most quanta; realistic 3-D shows the true, combined x+y+z motion
n = 0
n ≥
PERTURBATIONS
click any atom in the lattice to dump energy into it
off = well-stirred, any atom trades with any atom; on = quanta hop only to adjacent lattice atoms, so energy visibly diffuses instead of mixing instantly
inject quanta / click
Exchange rate{{ hopStr }}
rate constant k · a quantum leaves an atom’s oscillator holding n for a neighbour’s holding m at k·n(m+1)/6 per second · {{ hopMin }} – {{ hopMax }}
hot face auto-enables local exchange, so the gradient diffuses inward instead of mixing away instantly — pairs well with “Color by energy”
ADVANCED OPTIONS{{ advArrow }}
Array size
balls per side ({{ arrStr }} total) · {{ arrMin }} – {{ arrMax }}
Lattice size
wireframe grid per side ({{ lattStr }} total) · array size + 2n, keeps balls on lattice points
Trail extension{{ trStr }}
{{ trailNote }}

Accessibility statement · Web Accessibility