Double Pendulum Chaos Light Writing (computer simulation) 1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
21,500
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Oct 23, 2010

Double pendulum comprising two rigid linkages of negligible mass with point masses attached to the ends of the linkages, confined to two dimensional rotational motion about their joints without any dissipation. Here the double pendulum is held at 90 degrees and then released. Initially the motion appears regular, but chaos soon sets in, with the end point of the pendulum eventually covering the whole space available to it for a given starting energy.

The double pendulum is a wonderful example of how chaos exists in even a simple, non-dissipative, un-forced rigid 2DOF system! In this universe, chaos truly is the rule rather than the exception. In the same way as turbulent flow is well mixed, the end point of this pendulum is also "well mixed" in the sense that it has explored all of the space energetically available to it.

The linkages are coloured according to the instantaneous tension. A red colour scheme is employed during tension and a blue colour scheme during compression.

A point source of light is placed at the pendulum end point and an exposure map is created by accumulating this light on the pixels that it traverses throughout the simulation. The light source has a Gaussian spread with standard deviation of 2 pixels for added realism. So for a given point at which the light happens to be, a square grid of 4 standard deviations is placed around that point and an array is increment at those indices with the gaussian spread function evaluated on that square grid. An arbitrary luminosity factor scales the array before it is output as colour on a bitmap to give the desired amount of "glow". The colour values in all channels are clamped to 255 and this gives the effect of over-exposure (rather than re-scaling the intensities which would cause a dimming of everything else). This simulation of a long-time exposure photograph reveals not only where the pendulum tip has been, but also gives and indication of how fast it was going at that position and also how frequently it passed through the same path. The slower the pendulum travels, the more saturated the pixels become with the light. Also the more times the pendulum crosses the same point, the more exposed that point becomes.

All equations derived from scratch using Newtonian formulation rather than Lagrangian, by hand. You learn nothing by using symbolic maths software, and they never factorise the result in a physically meaningful way. Look at the equation at the start, notice how the masses only appear as a ratio, never alone. Thus the dynamics would be identical if both masses were scaled up or down by the same factor, i.e. if I use two 1kg masses or two 100kg masses, the end result is identical. This is because all masses fall at the same rate (Galileo). For a given set of masses, it is the length of the pendulum linkages that alter the dynamics.

All coded from scratch using Visual basic .NET. The numerical integration scheme was standard Runge-Kutta 4th order (non-symplectic, so should not be used to model long-term dynamics).

The frames of the movie were specifically output to play back in real time. So this video represents 1 minute of real time dynamics.

Pendulum parameters:
Link 1 length = 1.0m
Link 2 length = 0.9m
Mass 1 = 1.0kg
Mass 2 = 0.9kg
g = 9.81m/s^2
dt=0.0005s

The time step was ascertained by implementing a variable time step RK4 routine and observing the smallest time step ever encountered in the simulation with the tolerance on angular error specified as 1E-11 rad. For the purposes of constant frame-rate animation / movie, a constant time step must be used.

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (khyar)

  • What software did you use to solve this?

    Matlab/Simulink?

  • @x89codered89x I wrote everything from scratch in VB. NET. The equations were numerically integrated using the standard Runge-Kutta 4th order method.

  • @khyar RK4 is not a good idea for these chaotic simulations. It is much better to use some symplectic numerical scheme (e.g. Gauss-Legendre). Though you would not notice the difference in this animation, it would give you much more realistic Poincare sections...

  • @povidlo42 Yes, this is true, in particular for simulations over a long time period. As you said, it should not matter for this short animation.

  • you say masses are always in pairs but shouldn't the lengths also be in pairs? in ratios is what i mean

  • @overblast0000 Looking at the equation for the angular velocities, the masses only appear in ratios (m1/m2) whereas the lengths appear both in ratios (L01/L12), (L12/L01) as well as (g/L01) and (g/L02). The rest of the terms in the equations are all related to the state variables (omega, theta, and omega_dot). This reveals how only three things control the dynamics of the system: the ratio of the pendulum bob masses, the ratio of the pendulum arm lengths, and the ratio of gravity to arm lengths.

see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • Well the math looks simple enough. 

  • is there a common theme in diffusion/mixture and chaotic behaviour?

  • everyone in the comments must be physicists

  • Nice job on the double pendulum problem. Animation tells a fascinating story. Q1: What can you say about the onset of chaos and the island overlap criterion for this problem? Q2: What happens as you increase the number of oscillators, dimensions? Q3: Continuum limit? And a numeric question, if you reverse time in the final state, how accurately do you recover the initial state?

  • The Chaos Theory is fascinating. I just find it incredible how an orderly system that is completely balanced results in such disorder... and to think of how this influences the systems in our everyday lives!

  • What software did you use to simulate this?

    MATLAB/ SIMULINK?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more