This program simulates the force exerted by a magnetic field between two magnets on an electrical current trough a wire.
Click on the image to start the applet.
Applet ‘Lorentz force’.
Download the self-executable JAR file or a ZIP file with the XML source code for this example. To inspect and run the example, you will need to have EJS installed in your computer (see Installation), uncompress the downloaded ZIP file anywhere in the source directory of your EJS workspace and load it with EJS.
there is a remixed customized version here by lookang