File:Doublependula.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Doublependula.gif(274 × 222 pixels, file size: 5.83 MB, MIME type: image/gif, looped, 2,001 frames)

Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated. The limit on Wikimedia Commons is width × height × number of frames ≤ 100 million.

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Three double pendula with (almost) identical initial conditions are left free to swing. As the system is chaotic, after a short transient their dynamics rapidly diverge.
Date
Source https://twitter.com/j_bertolotti/status/1031466199866114049
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 11.0 code[edit]

p1 = {l Sin[\[Theta][t]], -l Cos[\[Theta][t]]};
p2 = p1 + {l Sin[\[Phi][t]], -l Cos[\[Phi][t]]};
T = FullSimplify[1/2 m Norm[D[p1, t]]^2 + 1/2 m Norm[D[p2, t]]^2, 
   Assumptions -> {m > 0, 
     l > 0, \[Theta][t] > 0, \[Theta]'[t] > 0, \[Phi]'[t] > 
      0, \[Phi][t] > 0}];
V = FullSimplify[m g p1[[2]] + m g p2[[2]], 
   Assumptions -> {m > 0 , l > 0}];
L = T - V;
e1 = FullSimplify[D[D[L, \[Theta]'[t]], t] - D[L, \[Theta][t]]];
e2 = FullSimplify[D[D[L, \[Phi]'[t]], t] - D[L, \[Phi][t]]];
(**)
tmax = 100;
m1 = 1;
m2 = 1;
g = 1;
l = 1;
s1 = NDSolve[{e1 == 0, 
   e2 == 0, \[Theta][0] == \[Pi], \[Phi][0] == \[Pi]/2, \[Theta]'[0] ==
     0, \[Phi]'[0] == 0}, {\[Theta], \[Phi]}, {t, 0, tmax}, 
  MaxSteps -> Infinity]
s2 = NDSolve[{e1 == 0, 
   e2 == 0, \[Theta][0] == \[Pi], \[Phi][0] == \[Pi]/2 + 
     0.01, \[Theta]'[0] == 0, \[Phi]'[0] == 
    0}, {\[Theta], \[Phi]}, {t, 0, tmax}, MaxSteps -> Infinity]
s3 = NDSolve[{e1 == 0, 
   e2 == 0, \[Theta][0] == \[Pi], \[Phi][0] == \[Pi]/2 - 
     0.01, \[Theta]'[0] == 0, \[Phi]'[0] == 
    0}, {\[Theta], \[Phi]}, {t, 0, tmax}, MaxSteps -> Infinity]
plots = Table[
   Graphics[{
     Black, Thickness[0.01], 
     Line[{{0, 0}, (p1 /. s1)[[1]], (p2 /. s1)[[1]]}],
     Orange, Disk[(p1 /. s1)[[1]], 0.15], 
     Disk[(p2 /. s1)[[1]], 0.15],
     Black, Thick, Circle[(p1 /. s1)[[1]], 0.15], 
     Circle[(p2 /. s1)[[1]], 0.15],
     (**)
     Black, Thickness[0.01], 
     Line[{{0, 0}, (p1 /. s2)[[1]], (p2 /. s2)[[1]]}],
     Cyan, Disk[(p1 /. s2)[[1]], 0.15], Disk[(p2 /. s2)[[1]], 0.15],
     Black, Thick, Circle[(p1 /. s2)[[1]], 0.15], 
     Circle[(p2 /. s2)[[1]], 0.15],
     (**)
     Black, Thickness[0.01], 
     Line[{{0, 0}, (p1 /. s3)[[1]], (p2 /. s3)[[1]]}],
     Purple, Disk[(p1 /. s3)[[1]], 0.15], 
     Disk[(p2 /. s3)[[1]], 0.15],
     Black, Thick, Circle[(p1 /. s3)[[1]], 0.15], 
     Circle[(p2 /. s3)[[1]], 0.15],
     (**)
     Black, Disk[{0, 0}, 0.1]
     }, PlotRange -> {{-3, 3}, {-3, 3}}, Frame -> False]
   , {t, 0, tmax, 0.05}];
Export["<path>/doublependula.gif", \
plots]

Licensing[edit]

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.

This file, which was originally posted to https://twitter.com/j_bertolotti/status/1031466199866114049, was reviewed on 19 October 2018 by reviewer Ronhjones, who confirmed that it was available there under the stated license on that date.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:07, 14 April 2020Thumbnail for version as of 15:07, 14 April 2020274 × 222 (5.83 MB)Leonel Sohns (talk | contribs)Cropped 24 % horizontally, 38 % vertically using CropTool with gif mode.
09:04, 20 August 2018Thumbnail for version as of 09:04, 20 August 2018360 × 360 (6.25 MB)Berto (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata