This applet will simulate the Haynes-Shockley experiment, with an animated carrier density graph to show variation over time. Use the Start button to run or pause the simulation, and the Reset button to go back to the beginning.
Any changes made to parameters will not take effect until the simulation is restarted (either click Reset, or press the return key after editing a text field).
The initial density is a square function; the width and position may be changed using the fields provided. Similarly, the strength of the electric field may be adjusted.
This graph will "wrap around" once the available width has been filled.
Over time, the carrier density seen by the observer will be approximately Gaussian; the width of this Gaussian will be calculated and displayed as soon as there is sufficient data to do so. The width is calculated by taking the distance between the two half-maximal points on the curve. If the curve is so "flat" that the graph "wraps around" before the second of these points is displayed, then no width will be calculated.
As the maximum value for this graph cannot easily be determined from initial conditions, the scale will automatically adjust to fit the data. Once the maximum value has been reached, the scale will stop changing.
The grey vertical lines (on the integral and observed density graphs) do nothing other than indicated where "now" is on the graphs, and are mostly for dramatic effect.