登录论坛

查看完整版本 : Chaotic Swinging Sticks - Cleve Moler on Mathematics and Computing


poster
2024-02-21, 02:41
The Swinging Sticks (https://swingingsticks.com) is a kinetic sculpture that exhibits chaotic motion. The device became very popular after it upstaged Tony Stark in Iron Man 2 (https://www.google.com/search?q=youtube+swinging+sticks+iron+man#fpstate=ive&vld=cid:6a6186e3,vid:sbbjhNLiL3c,st:0). My daughter Carolyn gave me a desktop version of Swinging Sticks for Christmas. I immediately set out to simulate it.

http://blogs.mathworks.com/cleve/files/sculpture.png

Contents


Chaotic Motion (https://www.labfans.com/bbs/#a9143ab6-8f3f-482e-92ee-35cf3f9190de)
Swinging Sticks (https://www.labfans.com/bbs/#bf97f3ad-e2a5-4421-9892-a8466b18022a)
Sculpture (https://www.labfans.com/bbs/#3862e132-f69e-4702-85b6-6aeeb1406839)
Code (https://www.labfans.com/bbs/#dd331fb2-a5f9-42c6-a538-5b2cb8c9b486)

Chaotic Motion

Chaotic motion appears random but isn't. Once the motion begins, the initial conditions together with Newton's law of motion, F = ma, determine subsequent behavior. There are no random forces. It may be difficult to predict positions, but they are well-determined, nonetheless.

A classic example of chaotic motion is the double pendulum. One mass at end of a massless string swings about a fixed pivot, and a second mass is attached by a massless string to the first. My simulator of the classis double pendulum is available in Cleve's Lab, swinger (https://blogs.mathworks.com/cleve/2016/10/31/introducing-cleves-laboratory), and a movie is available here pendulum movie (https://blogs.mathworks.com/cleve/files/swinger.mp4).

Swinging Sticks

The swinging sticks are similar to the double pendulum. The sticks are two rods with uniformly distributed mass, different lengths and off-center pivots. The best way to view the motion is to download this code (https://blogs.mathworks.com/cleve/files/swinging_sticks.m) and run it in your own MATLAB. Otherwise, here in a short slow-motion animated GIF.

http://blogs.mathworks.com/cleve/files/sticks_gif.gif

And, here is a longer Swinging Sticks Video (https://blogs.mathworks.com/cleve/files/sticks.mp4).

The motion of the shorter of the two rods is chaotic. Here are the orbits traced by the ends of the short rod.

http://blogs.mathworks.com/cleve/files/chaos.png

Sculpture

Swinging Sticks sculptures are available in various sizes and colors. The Swinging Sticks (https://swingingsticks.com).

Our mathematical model is of a frictionless perpetual motion machine. The real sculptures have an ingenious electromagnetic controller in the base that is claimed to run for two years on four AA batteries. Mine has been running since Christmas. An excellent YouTube video (https://www.youtube.com/watch?v=PWg6TG2bkFU) by Wayne Schmidt describes the controller.

Code

https://blogs.mathworks.com/cleve/files/swinging_sticks.m


Get the MATLAB code (requires JavaScript) (javascript:grabCode_3007bf720ec7402cb273ace1e6e2d61e())

Published with MATLAB® R2024a