The following is a simulation for charged particle in $B_z =B e^{-\frac{x^2}{2*\sigma^2}}$
You can drag the changed particle and change it's velocity (drag red arrow).

Let me know what you need!  


Click the eye (image) to display the simulation
[eye]

/htdocs/ntnujava/ejsuser/2/users/ntnu/fkh/changeGaussianField_pkg/changeGaussianField.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1030.4kB):double click downloaded file to run it. (5 times by 5 users) , Download EJS source View EJS source
[/eye]