NetLogo User Community Models
by Jerry James (Submitted: 02/18/2003)
This model mimics the behavior of a magnet suspended over other magnets fixed on a surface such that the suspended magnet
In this model the suspended magnet, called the bob, is a turtle which slides among the fixed magnets, but is not "allowed"
The number of fixed magnets can be varied from 0 to 10. The magnetic force between each fixed magnet and the bob can be varied,
How to Play
Before pressing the Setup button:
Select the number of fixed magnets using the slider "NumMagnets".
Select the minimum and maximum distance from the center to locate the fixed magnets using the sliders "MagMaxRadius"
Select the magnetic strenth to apply using slider "MagStrength". If it is set to zero, only the "gravity" force
Select the minimum and maximum distance from the center to locate the bob using the sliders "bobMaxRadius"
Select the force on the bob using the slider "gravity". If it is set to zero, only the fixed magnets will
Note: Speed settings actually change the size of time intervals between computation of position of the bob. The further
Stronger magnet strength and bob gravity causes higher acceleration and velocity, which, like increasing speed,
After pressing the Setup button and before pressing the Go button:
If you don't like the positioning of the magnets and bob, press Setup again.
At any time:
If you like the positioning of the fixed magnets but not that of the bob, press the "Setup bob" button. This will
Press the "Labels On/Off" button to toggle the display of the fixed magnet labels, which is simply their number ID.
Set the "Trace On/Off" switch as desired.
Set the "fade-rate" slider to vary the speed with which the trace fades out. Fading is not executed for each point
Change the execution speed using the "Speed" slider. Because this actually changes the size of the time steps between
Use the "Zoom" slider to zoom in or out on the screen. The bob and magnet coordinates are maintained separately and
Press "Clear Trace" button to clear an existing trace without affecting anything else. If the model is running the
If you would like to have the bob, at its current position, whether the model is running or not, behave as though
You can change the magnet strength.
You can change the bob's gravity.
Have fun, but don't get hypnotized!
(back to the NetLogo User Community Models)