Lecture 8 Example


schrodinger_fdtd.py -- Solution of the time-dependent Schrödinger equation using the leapfrog scheme. Download this file, make it executable, and run. Observe interaction of the wave packet with different potentials: change the type of the potential (comment out line 122 and uncomment line 118 or 127) and rerun the simulation. You can also change various simulation constants.

More information about this code is available here.