\vec{F}=q\vec{v}\times\vec{B}.
The following show a charged particle trapped bwtween two uniform field.
You can use sliders to change the width and the separation between two sets of magnet.
The magnetic field is assumed to be uniform Bz\hat{z} inside the magnet region. and the field is zero when outside the boundary.

You can change the location and velocity of the charged particle with mouse drag and drop or with sliders.

translate strings in simulation to different language format before download
Full 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(1463.3kB):double click downloaded file to run it. (26 times by 9 users) , Download EJS source (11 times by 5 users) View EJS source