File:Forceddampedpendulum-multiple.gif

Summary

Description
English: 20 sinusoidally forced (damped) simple pendula. Initial angle differ by ~1 millionth of a radian. As the phase space is 2D one can plot it directly to see the evolution of this chaotic system.
Date
Source https://twitter.com/j_bertolotti/status/1231944579282358274
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 12.0 code

n = 20;
sol = Table[
   NDSolve[{\[Theta]''[t] + 0.5 \[Theta]'[t] + Sin[\[Theta][t]] - 1.15* Sin[0.667*t] == 0, \[Theta]'[0] == 0, \[Theta][0] == j* 10^-6}, \[Theta], {t, 0, 200}], {j, 1, n}];
l = 1;
pos = {l Sin[\[Theta][t]], -l Cos[\[Theta][t]]};
tmp[t_] := \[Theta][t] /. sol;
p0 = Table[
   GraphicsRow[{
     Graphics[{Thickness[0.005], Circle[{0, 0}, 0.15, {-\[Pi]/2, -\[Pi]/2 + Sin[0.667*t]}], Thickness[0.01], Table[{Hue[j/n], Disk[(pos /. sol[[j]])[[1]], 0.1], Line[{{0, 0}, (pos /. sol[[j]])[[1]]}]}, {j, n, 2, -1}], Black, Disk[{0, 0}, 0.05], Disk[{0, 0}, 0.05], Disk[(pos /. sol[[1]])[[1]], 0.1], Line[{{0, 0}, (pos /. sol[[1]])[[1]]}]
       }, PlotRange -> {{-2, 2}, {-2, 2}}]
     ,
     Show@
      Table[ParametricPlot[{Mod[tmp[\[Tau]], 2 \[Pi]], tmp'[\[Tau]]}[[All, j]], {\[Tau], If[t < 5, 0, t - 5], t}, PlotRange -> {{0, 2 \[Pi]}, {-2, 2}}, AspectRatio -> 1, Axes -> False, Frame -> True, 
        FrameLabel -> {"\[Theta]", "\!\(\*OverscriptBox[\(\[Theta]\), \(.\)]\)"}, LabelStyle -> {Black, Bold, Medium}, PlotStyle -> If[j == n, Black, Hue[j/n]] ], {j, 1, n}]
     }]
   , {t, 10^-3, 150, 0.5}];
ListAnimate[p0]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Forceddampedpendulum-multiple.gif
Category:Self-published work Category:Animated GIF files Category:Animations of Chaos theory Category:Animations of pendulums Category:Phase space diagrams Category:Images with Mathematica source code Category:Animated GIF files between 50 MP and 100 MP
Category:Animated GIF files Category:Animated GIF files between 50 MP and 100 MP Category:Animations of Chaos theory Category:Animations of pendulums Category:CC-Zero Category:Images with Mathematica source code Category:Phase space diagrams Category:Self-published work