HomePhysics & MechanicsScalar Field on a Lattice

Scalar Field on a Lattice

Interactive 3D simulation of classical scalar field theory: a Klein-Gordon field evolving on a discrete lattice, showing wave propagation and how localized field excitations behave like particles.

Physics & Mechanics3DAdvanced60 FPS
field-theory ↗ 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

Interactive 3D simulation of classical scalar field theory: a Klein-Gordon field evolves on a discrete lattice under the wave equation, and raising the mass term turns freely-spreading waves into localized, particle-like lumps.

Three.jsfield theoryphysicswave equationlatticeparticles

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)