Simulating double, spring pendulums.
@springy_bot is a Twitter bot created by Tyler Cox.
This Twitter bot uses Python to simulate and visualize a double pendulum connected by springs rather than fixed rods. This leads to more chaotic behavior than the traditional double pendulum and the results are often quite mesmerizing.
Each simulation has randomly generated initial conditions, colormap, and the number of double pendulums that are simulated, and runs at 60 FPS for 20 seconds using Matplotlib‘s Animation class.
The bot posts simulations 3 times a day using a Github Actions cron job.