Code covered by the BSD License  

Highlights from
Animated Double Pendulum

5.0

5.0 | 1 rating Rate this file 103 Downloads (last 30 days) File Size: 113.81 KB File ID: #27212
image thumbnail

Animated Double Pendulum

by Alexander Erlich

 

09 Apr 2010 (Updated 04 Oct 2010)

Show animation of the double pendulum's (mostly) chaotic behavior.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

For animation, the program uses Matlab's normal plot command combined with the drawnow command. It is based on the ode45 solution of the corresponding differential equations.

Comprehensive documentation is provided, including a sketch of the most important steps of how to derive the equations of motion. A simple Mathematica notebook contains all of the manipulations.

 
Start the program via >> double_pendulum_init
 

You can adapt parameters such as rod lengths, masses and initial angular positions and velocities in the double_pendulum_init.m file.

It might be interesting to implement some features in future versions, such as angular time dependence plots, phase space portraits or Poincaré sections.

Have fun observing the rich dynamic behaviour of this simple, but mostly chaotic system :-)

Acknowledgements
This submission has inspired the following:
SimplePendulum
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
07 Jul 2010 Michu Gura

10!

Please login to add a comment or rating.
Updates
04 Oct 2010

Movies can now be written into .avi format. Frame rate is now changeable and can be adapted both for real time animation and movie rendering.

Tag Activity for this File
Tag Applied By Date/Time
physics Alexander Erlich 12 Apr 2010 10:12:31
theoretical physics Alexander Erlich 12 Apr 2010 10:12:31
animation Alexander Erlich 12 Apr 2010 10:12:31
teaching Alexander Erlich 12 Apr 2010 10:12:31
chaos Alexander Erlich 12 Apr 2010 10:12:31
nonlinear dynamics Alexander Erlich 12 Apr 2010 10:12:31
nonlinear Alexander Erlich 12 Apr 2010 10:12:31
mechanics Alexander Erlich 12 Apr 2010 10:12:31
classical mechanics Alexander Erlich 12 Apr 2010 10:12:31
kam Alexander Erlich 12 Apr 2010 10:12:31
euler Alexander Erlich 12 Apr 2010 10:12:31
mathematics Alexander Erlich 12 Apr 2010 10:12:31
drawnow Alexander Erlich 12 Apr 2010 10:12:31
poincare Alexander Erlich 12 Apr 2010 10:12:31
phase space Alexander Erlich 12 Apr 2010 10:12:31
lagrange Alexander Erlich 12 Apr 2010 10:12:31
potw Shari Freedman 13 Aug 2010 09:43:57
pick of the week Jiro Doke 11 Feb 2011 20:05:27
animation Koray Kuscu 20 Dec 2011 13:32:35

Contact us at files@mathworks.com