A FDTD example in Python


This is an example of a FDTD simulation of a one dimensional light wave in Python.  The initiating waveform is a sine wave.  The electric field is in cyan colour, while the magnetic field is in magenta colour.  The perfection of this waveform is due to the boundary condition, which feeds one end of the waveform into the other end, thereby enabling the continuity in wave propagation.  Effectively, this waveform is just repeated endlessly.  Practically, this perfection does not last.  It maintains its continuity from a few seconds to about 10-15 minutes depending on the beta used.


Reference:
Computational Physics: Problem Solving with Python, 3rd Edition, Rubin H. Landau, Manuel J Páez, Cristian C. Bordeianu

Comments

Popular posts from this blog

Octave output of lossless dielectric region, and lossy layer with impedance matched to lossless dielectric