Electromagnetic Wave Simulator
This program simulates the propagation of electromagnetic waves in a lossless medium surrounded by a perfect electric
conductor, solving Maxwell's equations using the Finite-Difference Time-Domain (FDTD) method,
with GPU acceleration to animate the fields interactively as the simulation runs.
The FDTD method divides space into tiny cubes and increments the electric field (E) and magnetic field (H) in alternating time steps by calculating a finite difference approximation for the time derivative in Maxwell's two curl equations:
The numerical approximation is stable as long as:
Δt < Δx
The boundary of the simulation's rectangular volume is a perfect electric conductor. The electric field vector is normal to the surface at the boundary (the tangental components are zero).
When the depth is much greater than the width and height, it becomes a rectangular waveguide. For each possible mode of propagation, frequencies above the cutoff excite it and the mode propagates through the waveguide. When the wave reaches the end, it reflects and produces standing waves. The first mode to propagate is TE10, which appears as a long train of single bubbles. (Higher order modes have a more complex structure, and multiple bubbles. Increase the frequency to see them!) The cutoff frequency for a TE (Transverse-Electric) or TM (Transverse-Magnetic) mode (m,n) is calculated by:
fcmn =
The simulator's default settings have a = 0.032 m and b = 0.024 m, and f = 6 GHz, so the only mode that propagates is TE10, which has a cutoff frequency of 4.68 GHz.
References:
[1] Computational Electrodynamics: The Finite Difference Time Domain Method, Allen Taflove, 1995
[2] Numerical Solution of Initial Boundary Value Problems Involving Maxwell's Equations in Isotropic Media, Kane S. Yee, IEEE Transactions on Antennas and Propagation, Vol. AP-14, no. 3, 1966
[3] Fields and Waves in Communication Electronics, Ramo, Whinnery, and Van Duzer, 1965