These are animated Finite-Difference Time-Domain (FDTD) simulations I've created in MATLAB. The modeled structure is a rectangular resonating cavity with perfectly conducting (PEC) walls. 3 Gaussian electric field pulses are defined at variable points in the cavity and propagate as electromagnetic waves. This cavity is half filled with a lossy dielectric (relative permittivity 4.2, conductivity 1S/m). It can be seen that the waves die out as they travel to the back of the structure along the y-axis and enter the lossy dielectric. This results in x-traveling waves only in the front of the structure. In the code these parameters are all variable.
The simulation presented here is an animations of the x-component of the electric field on a horizontal slice at about the midpoint of the x-axis, giving a sample of the y-z plane. Since the walls are PEC it is seen that the x-component of the E field is identically zero at the boundaries.
Download the MATLAB file here: http://www.egenriether.com/fdtd.html












