Ejs Open Source Lorentz force on a current carrying wire java applet by lookang customized from a simulation from http://www.um.es/fem/EjsWiki/Main/ExamplesLorentzForce by Francisco Esquembre.
Shout out thanks to the Francisco Esquembre, Fu-Kwun Hwang, Christian Wolfgang of open source physics community.
i was browsing through Ejs library of open source codes and found Lorentz Force to be a suitable applet for customization.
Lorentz force on a wire
This program simulates the force exerted by a magnetic field between two magnets on an electrical current trough a wire.
The wire is kept in equilibrium in the absence of gravity, suspended on a spring and will oscillate when the battery (which is connected to the ends of the wire) is turned on and off, the angle of the wire with respect to the magnetic field is changed, or the poles of the magnets are switched.