Double Pendulum Josh Altic May 15, 2008 Josh Altic Double - - PowerPoint PPT Presentation

double pendulum
SMART_READER_LITE
LIVE PREVIEW

Double Pendulum Josh Altic May 15, 2008 Josh Altic Double - - PowerPoint PPT Presentation

Double Pendulum Josh Altic May 15, 2008 Josh Altic Double Pendulum Position x 1 x 2 O 1 L 1 x 1 = L 1 sin( 1 ) x 2 = L 1 sin( 1 ) + L 2 sin( 2 ) m 1 y 1 L 2 y 1 = L 1 cos( 1 ) 2 m 2 y 2 = L 1 cos( 1 ) L 2 cos(


slide-1
SLIDE 1

Double Pendulum

Josh Altic May 15, 2008

Josh Altic Double Pendulum

slide-2
SLIDE 2

Position

x1 = L1 sin(θ1) x2 = L1 sin(θ1) + L2 sin(θ2) y1 = −L1 cos(θ1) y2 = −L1 cos(θ1) − L2 cos(θ2)

x1 x2 y1 y2 θ1 m1 L1 L2 θ2 m2 O

Josh Altic Double Pendulum

slide-3
SLIDE 3

Potential Energy: the sum of the potential energy of each mass

P = m1gy1 + m2gy2 P = −m1gL1 cos(θ1) − m2g (L1 cos(θ1) + L2 cos(θ2))

Josh Altic Double Pendulum

slide-4
SLIDE 4

Kinetic Energy in General

We know that K = 1/2mv2. Which brings us to K = 1/2m(˙ x2 + ˙ y2).

Josh Altic Double Pendulum

slide-5
SLIDE 5

Kinetic Energy in the double pendulum system

K = 1/2m1(˙ x2

1 + ˙

y2

1 ) + 1/2m2(˙

x2

2 + ˙

y2

2 ).

position: x1 = L1 sin(θ1) x2 = L1 sin(θ1) + L2 sin(θ2) y1 = −L1 cos(θ1) y2 = −L1 cos(θ1) − L2 cos(θ2) differentiating: ˙ x1 = L1 cos(θ1) ˙ θ1 ˙ x2 = L1 cos(θ1) ˙ θ1 + L2 cos(θ2) ˙ θ2 ˙ y1 = L1 sin(θ1) ˙ θ1 ˙ y2 = L1 sin(θ1) ˙ θ1 + L2 sin(θ2) ˙ θ2 K = 1/2m1 ˙ θ2

1L2 1 + 1/2m2[ ˙

θ2

1L2 1 + ˙

θ2

2L2 2 + 2 ˙

θ1L1 ˙ θ1L2 cos(θ1 − θ2)].

Josh Altic Double Pendulum

slide-6
SLIDE 6

Lagrangian in General

The Lagrangian(L) of a system is defined to be the difference of the kinetic energy and the potential energy. L = K − P. For the Lagrangian of a system this Euler-Lagrange differential equation must be true: d dt ∂L ∂ ˙ θ

  • − ∂L

∂θ = 0

Josh Altic Double Pendulum

slide-7
SLIDE 7

the Lagrangian of our double pendulum system

K = 1/2m1 ˙ θ2

1L2 1 + 1/2m2[ ˙

θ2

1L2 1 + ˙

θ2

2L2 2 + 2 ˙

θ1L1 ˙ θ2L2 cos(θ1 − θ2)]. P = −(m1 + m2)gL1 cos(θ1) − m2L2g cos(θ2) In our case the Lagrangian is L = 1/2(m1 + m2)L2

1 ˙

θ2

1 + 1/2m2L2 2 ˙

θ2

2 + m2L1L2 ˙

θ1 ˙ θ2 cos(θ1 + θ2)+ (m1 + m2)gL1 cos(θ1) + m2L2g cos(θ2).

Josh Altic Double Pendulum

slide-8
SLIDE 8

Partials of the Lagrangian for θ1

L = 1/2(m1 + m2)L2

1 ˙

θ2

1 + 1/2m2L2 2 ˙

θ2

2 + m2L1L2 ˙

θ1 ˙ θ2 cos(θ1 − θ2)+ (m1 + m2)gL1 cos(θ1) + m2L2g cos(θ2) Thus: ∂L ∂θ1 = −L1g(m1 + m2) sin(θ1) − m2L1L2 ˙ θ1 ˙ θ2 sin(θ1 − θ2) ∂L ∂ ˙ θ1 = (m1 + m2)L2

1 ˙

θ1 + m2L1L2 ˙ θ2 cos(θ1 − θ2) d dt ∂L ∂ ˙ θ1

  • = (m1 + m2)L2

θ1 + m2L1L2¨ θ2 cos(θ1 − θ2) −m2L1L2 ˙ θ2sin(θ1 − θ2)( ˙ θ1 − ˙ θ2)

Josh Altic Double Pendulum

slide-9
SLIDE 9

Substituting into the Euler-Lagrange Equation

d dt ∂L ∂ ˙ θ

  • − ∂L

∂θ = 0 (m1 + m2)L2

θ1 + m2L1L2¨ θ2 cos(θ1 − θ2) + m2L1L2 ˙ θ2

2 sin(θ1 − θ2)+

gL1(m1 + m2) sin(θ1) = 0 Simplifying and Solving for ¨ θ1: ¨ θ1 = −m2L2¨ θ2 cos(θ1 − θ2) − m2L2 ˙ θ2

2 sin(θ1 − θ2) − (m1 + m2)g sin(θ1)

(m1 + m2)L1

Josh Altic Double Pendulum

slide-10
SLIDE 10

Partials for θ2

Once again the Lagrangian of the system is L = 1/2(m1 + m2)L2

1 ˙

θ2

1 + 1/2m2L2 2 ˙

θ2

2 + m2L1L2 ˙

θ1 ˙ θ2 cos(θ1 − θ2)+ (m1 + m2)gL1 cos(θ1) + m2L2g cos(θ2) ∂L ∂θ2 = m2L1L2 ˙ θ1 ˙ θ2 sin(θ1 − θ2) − L2m2g sin(θ2) ∂L ∂ ˙ θ2 = m2L2

2 ˙

θ2 + m2L1L2 ˙ θ1 cos(θ1 − θ2) d dt ∂L ∂ ˙ θ2

  • = m2L2

θ2 + m2L1L2¨ θ1 cos(θ1 − θ2) −m2L1L2 ˙ θ1 sin(θ1 − θ2)( ˙ θ1 − ˙ θ2)

Josh Altic Double Pendulum

slide-11
SLIDE 11

Substituting into the Euler-Lagrange equation for θ2

d dt ∂L ∂ ˙ θ

  • − ∂L

∂θ = 0 L2¨ θ2 + L1¨ θ1 cos(θ1 − θ2) − L1 ˙ θ2

1 sin(θ1 − θ2) + g sin(θ2) = 0.

¨ θ2 = −L1¨ θ1 cos(θ1 − θ2) + L1 ˙ θ2

1 sin(θ1 − θ2) − g sin(θ2)

L2 .

Josh Altic Double Pendulum

slide-12
SLIDE 12

two dependent differential equations

We now have two equations that both have ¨ θ1 and ¨ θ2 in them. ¨ θ1 = −m2L2¨ θ2 cos(θ1 − θ2) − m2L2 ˙ θ2

2 sin(θ1 − θ2) − (m1 + m2)g sin(θ1)

(m1 + m2)L1 ¨ θ2 = −L1¨ θ1 cos(θ1 − θ2) + L1 ˙ θ2

1 sin(θ1 − θ2) − g sin(θ2)

L2 .

Josh Altic Double Pendulum

slide-13
SLIDE 13

creating two second order differential equations

¨ θ1 = −m2L1 ˙ θ2

1 sin(θ1 − θ2) cos(θ1 − θ2) + gm2 sin(θ2) cos(θ1 − θ2)

−m2L2 ˙ θ2

2 sin(θ1 − θ2) − (m1 + m2)g sin(θ1)

L1(m1 + m2) − m2L1 cos2(θ1 − θ2) ¨ θ2 = m2L2 ˙ θ2

2 sin(θ1 − θ2) cos(θ1 − θ2) + g sin(θ1) cos(θ1 − θ2)(m1 + m2)

+ L1 ˙ θ2

1 sin(θ1 − θ2)(m1 + m2) − g sin(θ2)(m1 + m2)

L2(m1 + m2) − m2L2 cos2(θ1 − θ2)

Josh Altic Double Pendulum

slide-14
SLIDE 14

converting to a system of first order differential equations

If I define new variables for θ1, ˙ θ1,θ2 and ˙ θ2 I can construct a system of four first order differential equations that I can then solve numerically. This gives me z1 = θ1 z2 = θ2 z3 = ˙ θ1 z4 = ˙ θ2. differentiating I get ˙ z1 = ˙ θ1 ˙ z2 = ˙ θ2 ˙ z3 = ¨ θ1 ˙ z4 = ¨ θ2.

Josh Altic Double Pendulum

slide-15
SLIDE 15

A system of four first order differential equations

˙ z1 = ˙ θ1 ˙ z2 = ˙ θ2 ˙ z3 = −m2L1z2

4 sin(z1 − z2) cos(z1 − z2) + gm2sin(z2) cos(z1 − z2)

−m2L2z2

4 sin(z1 − z2) − (m1 + m2)g sin(z1)

L1(m1 + m2) − m2L1 cos2(z1 − z2) . ˙ z4 = m2L2z2

4 sin(z1 − z2) cos(z1 − z2) + g sin(z1) cos(z1 − z2)(m1 + m2)

+L1z2

4 sin(z1 − z2)(m1 + m2) − g sin(z2)(m1 + m2)

L2(m1 + m2) − m2L2 cos2(z1 − z2) .

Josh Altic Double Pendulum

slide-16
SLIDE 16

example of cyclical behavior of the system

−1.5 −1 −0.5 0.5 1 1.5 −0.5 0.5 1 1.5 x1 and x2 y1 and y2 m1 m2

Josh Altic Double Pendulum

slide-17
SLIDE 17

example of cyclical behavior of the system

−2 −1 1 2 −2 −1.5 −1 −0.5 0.5 1 1.5 x1 and x2 y1 and y2 m1 m2

Josh Altic Double Pendulum

slide-18
SLIDE 18

example of nearly cyclical behavior of the system

−2 −1 1 2 −1.5 −1 −0.5 0.5 1 1.5 2 x1 and x2 y1 and y2 m1 m2

Josh Altic Double Pendulum

slide-19
SLIDE 19

example of nearly cyclical behavior of the system

−2 −1 1 2 −1.5 −1 −0.5 0.5 1 1.5 2 x1 and x2 y1 and y2 m1 m2

Josh Altic Double Pendulum

slide-20
SLIDE 20

Example of Chaotic behavior of the system

−2 −1 1 2 −1.5 −1 −0.5 0.5 1 x1 and x2 y1 and y2 m1 m2

Josh Altic Double Pendulum