Home
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

# Mousetraps

 If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

## WHAT IS IT?

Imagine a gymnasium full of mousetraps. On each mousetrap is a ping pong ball. Now throw a single ping pong ball into the middle of the room. The ball lands on a trap, the trap triggers, and a second ball flies into the air. The first ball also bounces into the air again, so now there are two balls in the air. Each of those two balls triggers another trap, so there's four balls in the air. And so on...

This experiment is a well-known metaphor for nuclear fission. In nuclear fission, atoms of fissionable material such as uranium are the "mousetraps", and neutrons are the ping pong balls.

## HOW IT WORKS

Light blue squares represent untriggered mousetraps. Red squares represent triggered mousetraps.

When a ball lands on a light blue square, the square turns red, a new ball appears, and both balls travel a random distance in a random direction.

## HOW TO USE IT

Press SETUP to set up all the mousetraps and suspend a single ping pong ball over the center. Press GO to release the ping pong ball.

If you want to see the reaction progress in slow motion, use the GO ONCE button to advance a step at a time.

To vary the maximum distance a ping pong ball can travel when it is released or bounces, use the MAX-DISTANCE slider.

## THINGS TO NOTICE

Sometimes the reaction fizzles out almost immediately. Why do you think that happens?

Even if a sustained chain reaction occurs, not every mousetrap gets triggered. Why?

What shape is the "Traps triggered" plot? Why do you think it's shaped that way?

What shape is the "Balls in the air" plot? Why do you think it's shaped that way?

Suppose the gymnasium was infinitely large. What would the two plots look like? What kind of equation would produce such plots?

## THINGS TO TRY

Play around with varying the MAX-DISTANCE slider. How big does MAX-DISTANCE need to be in order to get a chain reaction every time? Most of the time?

## EXTENDING THE MODEL

There are various ways in which this model could be more physically realistic. For example:

• Currently both a released ball and a bouncing ball travel the same maximum distance, but in reality the mousetrap would likely send the released ball much farther. Change the model so these different distances are controlled by two different sliders.

• Currently the balls travel to their new positions instantly --- in reality it would take time proportional to the distance traveled. (Does it make a difference if you take into account that the balls move in a parabola through the air, not a straight line?) Change the model to take this into account.

## NETLOGO FEATURES

Note the use of `hatch` to cause the ping pong balls to "multiply".

When a turtle tries to move off the edge of the world it cannot, it hits the wall, and lands on the same mousetrap it triggered in the last step, it dies.

## RELATED MODELS

Rumor Mill is very similar to this model in mechanism and results, even though the domain is completely different (people and rumors instead of mousetraps and ping pong balls). (What other processes in nature or society does this model resemble...?)

Reactor X-Section and Reactor Top Down are two different views of nuclear fission happening inside a nuclear reactor. They both include ways of limiting the rate of fission so the "mousetraps" don't all start triggering uncontrollably.

## CREDITS AND REFERENCES

This model is based on the "Mousetrap" demo included with the Swarm agent-based modeling toolkit (http://www.swarm.org). See https://web.archive.org/web/20020719084215/http://acoma.santafe.edu/projects/swarm/examples/mousetrap/. Note that this model and that demo differ in various details.

## HOW TO CITE

If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.

For the model itself:

Please cite the NetLogo software as: