[b]This is a derived work to help students understanding DC motors especially the split ring purposes. Thanks to Fu-Kwun Hwang for his original codes! here http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=912.0

Changes made
1 made n =3 to simplify the number of currents to eyeball
2 added battery wires brush + sign to give context of power of DC motor
3 mask a part of the coil to give the illusion of single coil instead of plane previously
4 design the focus to be on just the 2 sides of the coil which has the most force that powered the rotation of DC motor
5 created animated gif as well for wikipedia.com i hope
6 added angle cta from 0 to 360 ^o to give sense of orientation
7 added omega for degree/s
8 added alpha for degre/s^2
9 added logic for split ring angle cta1 and cta2 to provide the ctadoubledot only when the is contact with split ring
10 equation of motion to reflect the no contact part to be without the torque from the magnetic force
11 magnetic force on and off when contact on and off
12 force shown
13 added particles for battery side wires which the particles motion is always from + potential so some code need to be re-purposed.
14 n is 5 now, better look and feel
15 motion of particles on battery wires now stop if there is no closed loop of the electric circuit
16 motion of particles current and electron are correctly reflected after extensive learning and debugging
17 added current can be negative
18 redesigned the angular acceleration and force activation condition into 4 quadrants, divide and conquer, previous original model is without the split ring consideration/model
19 added texts PQ axle, ABCD coil contact XY for ease of verbalization of communicating ideas and hypothesis for learners
20 added description and exercises to complement the virtual lab
21 rectified a major design mistake which i created due to misinterpretation of the usage of variable "sign" and finally got it to work (move) in correct representation/convention even with electron particles by designing with my own logic of how it can be made to do the simulation according to my understanding of the physics involved.
22 created a new logic for negative current in the battery wire to reflect the convention adopted today in physics
23 made the split ring commutator rotate with the coil instead of the original stationary design to conform to textbook explanation and the flash animation below
20March 2010 thanks to Taha Mzoughi http://physci.kennesaw.edu/mzoughi/bio.shtm remixed model, i realized what enhancements can be done.
24 added Torque clockwise positive view from the default perspective
25 Added Inertia to demonstrate the difficulty in increasing the angular velocity over time
26 added step button to allow for closer observation by learners

other reference:

This data from topic  [b][u]http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1266[/u][/b]


By [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=profile;u=14019]Lookang wee[/url]