Home▸Physics & Mechanics▸Scalar Field on a Lattice (2D)

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.

Physics & Mechanics2DAdvanced60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Scalar Field on a Lattice (2D) ↗ Open standalone

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.

⚙ Under the hood

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.

field theoryphysicswave equationlatticeparticlescanvas 2dKlein-Gordonlattice fielddispersion relation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)