Spectral Fourier–Poisson Solver

Solve ∇²φ = −ρ via discrete Fourier transform: transform the source ρ, divide by −k² in frequency space, then inverse-transform. Visualize the source charge distribution, its spectrum, and the resulting potential in real time.

Grid N 64
Source type
Charge spread σ 4.0
Animation speed 2
Poisson equation solved spectrally: φ̂(k) = ρ̂(k)/k² | Max |φ|: