Download ModelDownload SourceembedLaunch WebsiteLaunch Website 2


Intro Page

Useful Variables:

- Coordinates of Rod, xRod, yRod, relative position East, most right tip

- Coordinates of Magnet, xMagnet, yMagnetm relative position West, most left tip

- Heating, fireOn, true or false


- Very simple repulsion, attempted attraction

- Based on the qns, Rod X is supposed to be a magnet, so flipping the magnet is an option, meaning we must include attraction. (variable:  flipMagnet:true/false)

Debugging Purposes:

TL: "xRod+dxRod/2="+(xRod+dxRod/2).toFixed(2)+"\ninCollisionRange="+inCollisionRange+"\nxMagnet.toFixed(2)="+xMagnet.toFixed(2)

TR: "distance=" + distance+"\nattractivepower="+attractivepower+"\nxRod="+xRod+"\nxMagnet="+xMagnet+"\ndebugangle="+debugangle+"\ncheck="+((xRod+dxRod/2)>xMagnet)

BL: %hint%

BR: "distance2="+distance2+"\nstage="+stage+"\ntheta="+theta+"\nomega="+omega+"\nthetacollsion="+thetacollsion



Code Language Translator Run

Software Requirements


Android iOS Windows MacOS
with best with Chrome Chrome Chrome Chrome
support full-screen? Yes. Chrome/Opera No. Firefox/ Samsung Internet Not yet Yes Yes
cannot work on some mobile browser that don't understand JavaScript such as.....
cannot work on Internet Explorer 9 and below



This email address is being protected from spambots. You need JavaScript enabled to view it.; Francisco Esquembre; Felix J. Garcia Clemente; Siti

Sample Learning Goals


For Teachers

Initial Setup. User is able to drag the magnet closer to the Rod to see the interaction.


The simulation is based on the question of whether Rod X is a magnet or not. In this case, it is as the two objects are repelling.


User can experiment by turning on the fire to heat up the rod to see if anything will happen.


The fire is assumed to be strong enough to demagnetise Rod X, thus rod X will be attracted by the Magnet. 


At the initial setup, the user can choose to flip the magnet to determine whether Rod X is a magnet. Thus, this shows an attraction between the two objects.




Suspended Magnet



Other Resources

end faq

{accordionfaq faqid=accordion4 faqclass="lightnessfaq defaulticon headerbackground headerborder contentbackground contentborder round5"}

1 1 1 1 1 1 1 1 1 1 Rating 0.00 (0 Votes)