A plasma is a gas that has been ionised enough that its behaviour is governed by long-range electromagnetic forces rather than short-range neutral collisions. Strip electrons from atoms and you are left with a soup of free electrons and positive ions that responds collectively: nudge one region and the whole medium pushes back through electric fields. That collective character is exactly what makes plasma both fascinating and hard to picture from equations alone. The models below trade some physical completeness for interactivity, so you can drag a slider and watch a charged gas reorganise itself in real time.
Debye Shielding and the Length Scale of a Plasma
The first quantity any plasma model needs is the Debye length,
written λ_D. Drop a single positive test charge into a plasma
and the mobile electrons swarm toward it, while ions drift away. Within a short
distance the test charge’s field is almost completely cancelled — the
plasma has “shielded” it. The Debye length is the characteristic radius
over which that screening happens, set by the balance between thermal motion, which
tries to randomise positions, and electrostatic attraction, which tries to order
them. Formally λ_D = sqrt(ε_0 k_B T_e / (n_e e²)):
hotter plasmas screen over longer distances, denser plasmas screen over shorter
ones.
The Debye length is not academic trivia. It defines the boundary between two
regimes. On scales smaller than λ_D a particle feels the bare
Coulomb fields of its neighbours and behaves almost like a collection of individual
charges. On scales larger than λ_D those fields are screened
and the medium behaves as a smooth, quasi-neutral fluid. A useful sanity check for
any ionised gas is the number of particles inside a Debye sphere — only when
that number is large does the statistical, collective picture hold and the system
earns the name “plasma” at all.
Why it matters for simulation: any grid-based plasma solver must
resolve the Debye length, or the screening physics is lost and spurious heating
appears. Browser models cheat by working in scaled units where one pixel is a
fixed fraction of λ_D, keeping the dynamics stable on a laptop.
Plasma Oscillations: The Heartbeat of a Charged Gas
Push the electron population of a plasma slightly to one side and a restoring force
appears: the displaced electrons leave behind a layer of positive ions, the
resulting electric field pulls them back, they overshoot, and the whole cloud rings.
This is the plasma oscillation, and its frequency — the
electron plasma frequency ω_p — depends only on the electron
density: ω_p = sqrt(n_e e² / (ε_0 m_e)). Denser
plasmas ring faster. Because the ions are thousands of times heavier than electrons,
they barely move on this timescale, so the oscillation is essentially an electron
phenomenon.
The plasma frequency also sets the cut-off for electromagnetic waves. An incoming
wave below ω_p cannot propagate — the electrons respond
fast enough to cancel it, and the wave is reflected. This is why the ionosphere
bounces AM radio around the curve of the Earth, and why the Sun’s corona is
opaque to certain radio frequencies. The same cut-off explains the shiny,
mirror-like appearance of metals, whose conduction electrons form a degenerate
plasma. Our oscillation model lets you raise the density and watch both the ringing
frequency climb and the reflection band widen.
Instabilities: When Small Perturbations Run Away
Plasmas are notorious for instabilities — configurations where a tiny perturbation feeds on the free energy in the system and grows exponentially. The two-stream instability is the textbook example: send two beams of charged particles through each other and any small density ripple bunches the particles, which strengthens the field, which bunches them further. Energy flows from the streaming motion into wave growth until the beams break up into turbulent eddies. It is the plasma cousin of feedback howl in a microphone.
The Kelvin-Helmholtz instability appears wherever two fluids shear past one another, and in a magnetised plasma the boundary between fast and slow flow rolls up into a chain of vortices. You see it at the edge of the Earth’s magnetosphere where the solar wind grazes past, in the banded clouds of Jupiter, and in laboratory plasma jets. The physics is identical to the swirls that form when wind blows over water, which is exactly why our Kelvin wake simulation is such a useful companion: the neutral-fluid version makes the geometry obvious before you add electromagnetic forces. For the magnetised shear case, the plasma instability simulation seeds a velocity shear layer and lets you watch the vortices grow, merge, and saturate.
Instabilities are also where plasma physics meets chaos. Once several unstable modes interact, the trajectories become sensitive to initial conditions and the flow turns turbulent. The same mathematical signatures — stretching and folding in phase space — show up in the Lorenz attractor simulation, which is a stripped-down model of convective turbulence and a gentle entry point to the dynamics that make confined fusion plasmas so difficult to control.
Energy, Collisions and Heating
Real plasmas are rarely in tidy thermal equilibrium. Energy injected by a beam, a shock, or an instability has to redistribute itself among the particles, and the rate at which it does so depends on collisions. In a hot, diffuse plasma collisions are rare and the gas can sustain very different temperatures for its electrons and ions for a long time. In a denser, granular regime the energy spreads quickly and the distribution relaxes toward a single temperature. The dynamics of energy spreading through a dense collection of colliding particles are explored directly in the granular heating simulation, which, although it models neutral grains, captures the same statistical-mechanics intuition: kinetic energy cascades from ordered motion into heat through countless small collisions.
For plasma specifically, this is why heating a fusion device is hard. Pump energy into the electrons and they may radiate it away before it reaches the ions you actually need to fuse. Every practical heating scheme — ohmic, radio-frequency, neutral-beam — is a strategy for coupling energy into the right particle population before the plasma loses it to the walls or to radiation.
Bringing It Into the Browser
Full plasma simulation uses particle-in-cell methods: track millions of macro-particles, deposit their charge onto a grid, solve for the fields with a Poisson or Maxwell solver, then push the particles with the resulting forces. That is far too heavy for a phone, so the browser models make deliberate simplifications — reduced particle counts, two dimensions, scaled units, and explicit time integration with a step small enough to stay below the plasma frequency. The trade is honest: you lose quantitative accuracy but keep the qualitative physics, which is what builds intuition.
Plasma physics rewards the interactive approach more than almost any other branch of physics, because so much of its behaviour is collective and emergent. No single particle “decides” to form a Debye sheath or roll into a vortex; the structure appears from the interaction of millions. Slow that interaction down, colour-code the fields, and let a reader nudge the parameters, and concepts that take a chapter of dense algebra become something you can simply see. Open any of the simulations above, change one slider at a time, and the abstractions of the fourth state of matter start to feel concrete.