Potential Theory / Harmonic Fields

Laplace Equation Field Studio

This simulation solves the two-dimensional Dirichlet problem for Laplace's equation, 2φ = 0, using red-black Gauss-Seidel relaxation with successive over-relaxation. Paint fixed-potential conductors, shape the outer boundary, and watch the charge-free region settle into a harmonic potential whose field lines follow E = -∇φ.

Back to Mathematical Simulations
Live State
Max Residual 0
Sweeps / Sec 0
Mean |E| 0
Peak |E| 0
Probe φ 0
Probe |E| 0

How To Read It

Warm colors are positive potential, cool colors are negative potential, and pale midtones sit near zero. Thin contour curves are equipotentials, and the arrow field follows the electric field direction.

Outside the painted conductors and fixed outer boundary, the solver enforces the discrete harmonic average: each cell relaxes toward the average of its four nearest neighbors.

Use drag to paint electrodes and scroll over the canvas to change brush size.