Scalar Field on a Lattice: Heat Map and Dispersion
A 2D top-down Canvas heatmap of the same Klein-Gordon field equation as the 3D version, letting you tune wave speed, mass and damping and click to inject perturbations.
Classical field theory treats space as filled everywhere with a field — a number (or set of numbers) defined at every point — rather than with discrete particles moving through empty space. This simulation puts a scalar field on a finite lattice and evolves it with the Klein-Gordon wave equation, so you can watch a disturbance spread as a wave across the grid. Raise the mass term and the wave stops spreading freely and instead clumps into short-lived, localized lumps — a hands-on picture of why a massive field's excitations behave like particles while a massless field's excitations behave like radiation.
A 2D top-down Canvas heatmap of the same Klein-Gordon field equation as the 3D version, letting you tune wave speed, mass and damping and click to inject perturbations.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install