Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Double Pendulum

  1. Jul 31, 2011 #1
    Hello all,
    I have written a python code implementing the Runge-Kutta fourth order method for higher orders to approximate the motion of a double pendulum. The problem I am having is that my plot of theta2 (angle of second rod) Vs time looks a little off and I am curious if I have it correct.
    Attached is a graph of both rod angles Vs time. The blue is the first rod and the green is the second rod. I figure the opinion of some physicists may be insightful. Thanks :)
    -thespaceman
     

    Attached Files:

  2. jcsd
  3. Aug 1, 2011 #2

    vanhees71

    User Avatar
    Science Advisor
    2016 Award

    It's not so easy to see just from the plot, whether there are numerical problems or not. A good check is, whether the total energy of the system remains conserved in the numerical simulation.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Double Pendulum
  1. Double pendulum (Replies: 2)

  2. Double Pendulum (Replies: 1)

Loading...