These jumping beans have a long shelf-life that allowed mail order sales from comic book ads, and they jump several times a minute when held in a hand and are thereby heated. Since these beans jump more at higher temperatures, Devon McKee, presently at the University of California, Santa Cruz, and A. Pasha Tabatabai from the Department of Physics of Seattle University (Seattle, Washington) thought that this process was a way in which the larvae are able to relocate from a potentially lethal sunny spot to tree shade.[3-4]
As the researchers state, organisms have strategies for motion that ensure their survival.[3] The larvae inside the seed pods execute their jumps blindly, and McKee and Tabatabai found that these jumps in random directions having no correlation to previous jumps are a random walk.[4] Given enough time, the jumping beans will always find their way from sun to shade.[4]
The researchers used image analysis to determine the quantitative attributes of the temperature-induced jumping, and they developed a computer simulation of the motion of the beans.[3] While a random walk is a slow method of travel, such a walk will visit every point in the plane if given enough time; so, the larvae will find the shade that they need.[3-4]
While their paper in Physical Review E is unfortunately paywalled, the idea is simple enough for me to program my own computer simulation, the C source code for which can be found here. This program utilizes two very useful Linuxapplications; namely, Gnuplot, for generating images of the instantaneous locations of the jumping beans, and ffmpeg, which allows stitching these images together as frames in a video. The program source code is commented to describe how these applications are used.
In my simulation, there's a large shade tree at the center of a field. The temperature of the field is 40°C, and this tapers to 20°C directly under the tree. A surface plot of the temperature distribution is shown in the following figure. The jumping beans are placed at random positions on the field outside the influence of the tree.
The field is 1000 by 1000, and a shade tree with branches extending to a circularradius of 200 is placed at (500,500). The temperature tapers from 40°C to 20°C towards the center of the tree.
When the rate of a process depends on temperature, we immediately think of the Arrhenius equation,
in which Ea is an activation energy, kB is the Boltzmann constant, T is the temperature, A is a constant, and k is the rate. While we could find values of these to fit our jumping bean problem, I instead used the Arrhenius rule-of-thumb that rates double for every 5°C temperature increase, and I set the jump rate in the field at 8, decreasing by factors of two to zero at the center of the tree. You can see the starting positions of twenty beans and their positions after 20,000 jumps in the following figure. A video of the jumping process is also provided.