Electromagnetism & Optics — Maxwell, Waves & Light

Ten interactive simulations spanning Coulomb's law, Faraday induction, EM wave propagation, RLC resonance, antenna radiation patterns, and the quantum weirdness of the double-slit experiment. Every algorithm from FDTD to Mie scattering, explained.

Fields & Forces

Electromagnetism is the second of the four fundamental forces — and the one that governs almost everything in everyday engineering. Unlike gravity, electric and magnetic fields can be visualised directly: field lines, equipotential surfaces, flux density, and induced currents all have intuitive geometric interpretations. Our simulations exploit this.

Maxwell's Equations (differential form)

∇·E = ρ/ε₀    (Gauss — electric)
∇·B = 0        (Gauss — magnetic, no monopoles)
∇×E = −∂B/∂t   (Faraday)
∇×B = μ₀J + μ₀ε₀ ∂E/∂t   (Ampère-Maxwell)

These four equations completely describe all classical electromagnetic phenomena. The ∂E/∂t term (Maxwell's correction) is what predicts electromagnetic waves.

Waves & Propagation

Optics & Quantum Effects

Why FDTD for EM waves? The Yee grid interleaves electric and magnetic field components in space and time — E and B are staggered by half a cell. This gives second-order accuracy in both space and time with no matrix inversion, making it ideal for real-time browser simulation. The key constraint is the CFL stability condition: c·Δt < Δx/√2.

Algorithms at a Glance

Coulomb superposition Biot-Savart Yee FDTD Mur ABC Faraday flux integral Phasor analysis Huygens-Fresnel Snell's law Array factor product z-transform

Suggested Learning Paths

📘 A-Level / High School Physics
  1. Electric Field & Potential — Coulomb's law
  2. Faraday Induction — generators and transformers
  3. RLC Resonance — tuned circuits
  4. Double-Slit — wave-particle duality
  5. Mirrors & Lenses — geometrical optics
🎓 University / Engineering Level
  1. EM Wave Propagation (FDTD) — Maxwell in discrete form
  2. Antenna Radiation Pattern — far-field analysis
  3. AM & FM Modulation — analogue communications
  4. Digital Signal Filter — DSP theory and z-plane design
  5. Magnetic Field Lines — Biot-Savart and solenoids