Vous êtes sur la page 1sur 16

The University of Melbourne

Project-15 Final Report


MCEN90041 Advanced Dynamics

0
Table of Contents

1. Problem Formulation .................................................................................................................... 2


2. Assumptions ................................................................................................................................. 2
3. Coordinate Systems and Diagrams ............................................................................................... 2
4. Generalized Coordinates, Degree of Freedom and Constraints .................................................... 2
5. Derivation of Lagrangian ............................................................................................................... 3
5.1. Defining Rotation Matrices ................................................................................................... 3
5.2. Defining the Kinematics ........................................................................................................ 3
Finding the absolute angular velocity of each link: ....................................................................... 3
Finding the position vector and linear velocity of each link: ......................................................... 4
5.3. Calculating Kinetics Energy.................................................................................................... 5
5.4. Calculating Potential Energy ................................................................................................. 6
5.5. Defining the Lagrangian ........................................................................................................ 6
6. Derivation of the Equation of Motion ........................................................................................... 7
6.1. Considering the Joint is Frictionless ...................................................................................... 7
6.2. Introducing Rayleigh Dissipation Force as Friction on Joints ................................................. 8
7. Simulation ................................................................................................................................... 10
7.1. Instructions ......................................................................................................................... 10
7.2. Results of Simulation........................................................................................................... 10

1
1. Problem Formulation
A free-swinging double pendulum system is attached on a pole, rotating along its axis at a
constant angular velocity of Ω. Define coordinate systems, generalized coordinates and
derive Lagrangian in cases both with and without friction.

2. Assumptions
1) The pendulum links are thin cylindrical rods.
2) Joints are massless.
3) There are no elastic nor plastic deformation occurring in the system.
4) Two pendulum links are identical to each other.
5) Mass is uniformly distributed along each component.
6) Pendulum joints are located at the tip of each pendulum link and coincide with the
longitudinal axis of the link. (i.e. Spacial overlapping of 2 links is possible)

3. Coordinate Systems and Diagrams

Figure 1 Coordinate System Diagram

Frame 0 : Z is alligned with link 0

Frame 1 : z1 is alligned with link 0, rotated from frame 0 around Z for Ωt

Frame 2 : z2 is alligned with link 1, rotated from frame 1 around x1 for θ1

Frame 3 : z3 is alligned with link 2, rotated from frame 1 about x1 for θ2

4. Generalized Coordinates, Degree of Freedom and Constraints


There are two degree of freedom of the double pendulum system with the three rigid bodies
(a pole and two links) , three roller joints and a constant Ω. Therefore, two independent
generalized coordinates are set to fuly describe the motion of the system:

𝑄 = {𝜃1 , 𝜃2 }

2
With the two degree of freedom and the two generalised coordinates, there are no constraint
equation used in this system.

5. Derivation of Lagrangian
5.1. Defining Rotation Matrices

cos(𝛺𝑡) − sin(Ω𝑡) 0
0
1𝑅 = [ sin(Ω𝑡) cos(Ω𝑡) 0 ]
0 0 1
1 0 0
1
2𝑅 = [0 cos(𝜃1 ) −sin(𝜃1 )]
0 sin(𝜃1 ) cos(𝜃1 )
1 0 0
1 0 cos(𝜃 ) −sin(𝜃
3𝑅 = [ 2 2 )]
0 sin(𝜃2 ) cos(𝜃2 )

5.2. Defining the Kinematics


Finding the absolute angular velocity of each link:
Link 0
0
1𝜔
1 = 0𝜔1 = [ 0 ]
Ω
Link 1
1𝜔
2 = 1𝜔1 + 1𝜔2,1
0 𝜃1̇
= [0] + [ 0 ]
Ω 0
𝜃1̇
= [0]
Ω

2𝜔
2 = 12𝑅 𝑇 1𝜔2
𝜃1̇
= [ Ωsin(𝜃1 ) ]
Ωcos(𝜃1 )
Link 2
1𝜔
3 = 1𝜔1 + 1𝜔3,1
0 𝜃2̇
= [0] + [ 0 ]
Ω 0
𝜃2̇
= [0]
Ω

3𝜔
3 = 13𝑅 𝑇 1𝜔3
𝜃2̇
= [ Ωsin(𝜃2 ) ]
Ωcos(𝜃2 )

3
Finding the position vector and linear velocity of each link:
Link 1
0
2𝑟 0
𝑂𝐺1 = [−𝑙]
2
0
𝑙
sin(𝜃1 )
1𝑟
𝑂𝐺1 = 12𝑅 ∙ 2𝑟𝑂𝐺1 = 2
−𝑙
[ 2 cos(𝜃1 )]
1𝑟 ̇ ′
𝑂𝐺1 = 1𝑟𝑂𝐺1 + 1𝜔1 × 1𝑟𝑂𝐺1
0 0
𝑙 0 𝑙
𝜃 ̇ cos(𝜃1 ) sin(𝜃1 )
= 2 1 + [0] × 2
−𝑙 Ω −𝑙
̇
[ 2 𝜃1 sin(𝜃1 )] [ 2 cos(𝜃1 )]
−𝑙
Ωsin(𝜃1 )
2
𝑙
= 𝜃 ̇ cos(𝜃1 )
2 1
−𝑙
̇
[ 2 𝜃1 sin(𝜃1 )]
Link 2
0
2𝑟
𝑂𝐴 = [0]
−𝑙

0
3 0
𝑟𝐴𝐺2 = [−𝑙]
2

1𝑟
𝑂𝐺2 = 1𝑟𝑂𝐴 + 1𝑟𝐴𝐺2
= 𝟏𝟐𝑅 2𝑟𝑂𝐴 + 𝟏𝟑𝑅 1𝑟𝐴𝐺2
0
0 𝑙
sin(𝜃2 )
=[ 𝑙 sin(𝜃1) ] + 2
−𝑙 cos(𝜃1 ) 𝑙
[− 2 cos(𝜃2 )]
0
1
𝑙 (𝑠𝑖𝑛(𝜃1 ) + 𝑠𝑖𝑛(𝜃2 ))
= 2
1
−𝑙 (cos(𝜃1 ) + cos(𝜃2 ))
[ 2 ]

1𝑟 ̇ = 1𝑟𝑂𝐺2 ′ + 1𝜔1 × 1𝑟𝑂𝐺2


𝑂𝐺2

4
0
𝑙 0
𝑙 (𝜃1̇ cos(𝜃1 ) +
𝜃 ̇ cos(𝜃2 ))
2 2= + [0]
𝑙 Ω
𝑙 (𝜃 1
̇ sin(𝜃1 ) + 𝜃2̇ sin(𝜃2 ))
[ 2 ]
0
1
𝑙 (𝑠𝑖𝑛(𝜃1 ) + 𝑠𝑖𝑛(𝜃2 ))
× 2
1
−𝑙 (cos(𝜃 1 ) + cos(𝜃2 ))
[ 2 ]
1
−Ω𝑙 (sin 𝜃1 + sin 𝜃2 )
2
1
= 𝑙 (𝜃1̇ cos 𝜃1 + 𝜃2̇ cos 𝜃2 )
2
1
𝑙(𝜃 ̇ sin 𝜃1 + 𝜃2̇ sin 𝜃2
1
[ 2 ]
Based on assumption 2, the inertia tensor of the two links are given by the inertial
tensor of a cylindirical rod.

𝑚𝑙2
0 0
2𝐼 𝐺1 3𝐼 𝐺2
12 𝑚𝑙2 1 0 0
1 = 2 = 𝑚𝑙2 = [0 1 0]
0 0 12
12 0 0 0
[ 0 0 0]
5.3. Calculating Kinetics Energy
Kinetics Energy of n rigid bodies can be calculated by :
𝑛
1
𝑇 = ∑(𝑚𝑖 𝑟𝑂𝐺̇ 𝑖 𝑇 𝑟𝑂𝐺̇ 𝑖 + 𝜔𝑖𝑇 𝐼𝑖𝐺 𝜔𝑖 )
2
𝑖=1
1 𝐺 𝐺
= (𝑚 1𝑟𝑂𝐺̇ 1 𝑇 1𝑟𝑂𝐺̇ 1 + 𝑚 1𝑟𝑂𝐺̇ 2 𝑇 1𝑟𝑂𝐺̇ 2 + 2 𝜔2𝑇 2𝐼1 1 2𝜔2 + 3𝜔3𝑇 3𝐼2 2 3𝜔3 )
2
1 𝑙 1 𝑙 1 1
− Ω sin 𝜃1 − Ω sin 𝜃1 −Ω𝑙 (sin 𝜃1 + sin 𝜃2 )
2 2 2
𝑚 𝑙 ̇ 𝑙 ̇ 1
=
2
𝜃 cos 𝜃1
2 1
∙ 𝜃 cos 𝜃1
2 1
+ 𝑙 (𝜃1̇ cos 𝜃1 + 𝜃2̇ cos 𝜃2 ) ∙
2
𝑙 ̇ 𝑙 ̇ 1
𝜃 sin 𝜃1 𝜃 sin 𝜃1 𝑙(𝜃1̇ sin 𝜃1 + 𝜃2̇ sin 𝜃2
( [ 2 1 ] [ 2 1 ] [ 2 ]
1 1
−Ω𝑙 (sin 𝜃1 + sin 𝜃2 ) 2 𝑇 2 2
2 𝜃1̇ 1 0 0 𝜃1̇
1 𝑚𝑙2
𝑙 (𝜃1̇ cos 𝜃1 + 𝜃2̇ cos 𝜃2 ) +
12
( [ Ω sin 𝜃1 ] [0 1 0] [ Ω sin 𝜃1 ] +
2
1 Ω cos 𝜃1 0 0 0 Ω cos 𝜃1
̇ ̇
[ 𝑙(𝜃1 sin 𝜃1 + 𝜃2 cos 𝜃2 ) ]
2 )
3 𝑇3 3
𝜃2̇ 1 0 0 𝜃2̇
[ Ω sin 𝜃2 ] [0 1 0] [ Ω sin 𝜃2 ])
Ω cos 𝜃2 0 0 0 Ω cos 𝜃2

5
𝑚 𝑙2 2 2
= [ (Ω 𝑠𝑖𝑛 𝜃1 + +𝜃12̇ 𝑠𝑖𝑛2 𝜃1 )
2 4
1
+ 𝑙 2 (Ω2 (𝑠𝑖𝑛𝜃1 + 𝑠𝑖𝑛𝜃2 )2 + 𝜃12̇ 𝑐𝑜𝑠 2 𝜃1 + 𝜃1̇ 𝜃2̇ cos 𝜃1 cos 𝜃2
2
1 1
+ 𝜃22̇ 𝑐𝑜𝑠 2 𝜃2 + 𝜃12̇ 𝑠𝑖𝑛2 𝜃1 + 𝜃1̇ 𝜃2̇ sin 𝜃1 sin 𝜃2 + 𝜃22̇ 𝑠𝑖𝑛2 𝜃2 )]
4 4
𝑚𝑙2 2̇
+ (𝜃 + Ω2 𝑠𝑖𝑛2 𝜃1 + 𝜃22̇ + Ω2 𝑠𝑖𝑛2
12 1
𝑚𝑙2 2 2 1 1
= [Ω 𝑠𝑖𝑛 𝜃1 + 𝜃12̇ + 4 (Ω2 (𝑠𝑖𝑛𝜃1 + 𝑠𝑖𝑛𝜃2 )2 + 𝜃12̇ + 𝜃1̇ 𝜃2̇ 𝑐𝑜𝑠(𝜃1 − 𝜃2 ) + 𝜃22̇ )]
8 2 4
𝑚𝑙2 2̇
+ (𝜃 + Ω2 𝑠𝑖𝑛2 𝜃1 + 𝜃22̇ + Ω2 𝑠𝑖𝑛2 𝜃2 )
12 1
𝑚𝑙2 1
= (3Ω2 𝑠𝑖𝑛2 𝜃1 + 3𝜃12̇ + 12Ω2 (𝑠𝑖𝑛𝜃1 + 𝑠𝑖𝑛𝜃2 )2 + 12𝜃12̇ + 12𝜃1̇ 𝜃2̇ 𝑐𝑜𝑠(𝜃1 − 𝜃2 )
24 2
+ 3𝜃 2̇ + 2𝜃 2̇ + 2Ω2 𝑠𝑖𝑛2 𝜃 + 2𝜃 2̇ + 2Ω2 𝑠𝑖𝑛2 𝜃 )
2 1 1 2 2

𝑚𝑙2
= (17Ω2 𝑠𝑖𝑛2 𝜃1 + 17𝜃12̇ + 12Ω2 sin 𝜃1 sin 𝜃2 + 5Ω2 𝑠𝑖𝑛2 𝜃2 + 12𝜃1̇ 𝜃2̇ 𝑐𝑜𝑠(𝜃1 − 𝜃2 )
24
+ 5𝜃 2̇ ) 2

5.4. Calculating Potential Energy


Potential Energy of n rigid bodies with only weight forces acting on them can be defined
by:
𝑛 0
𝑉 = ∑(𝑚𝑖 𝑟𝑂𝐺̇ 𝑇 . [ 0 ])
𝑖
𝑖=1 𝑔
0 0
= 𝑚 1𝑟𝑂𝐺1 ∙ [ 0 ] + 𝑚 1𝑟𝑂𝐺2 ∙ [ 0 ]
𝑔 𝑔
1 1
0 0
𝑙 1 1 1
0 0
sin 𝜃1 𝑙(𝑠𝑖𝑛𝜃1 + 𝑠𝑖𝑛𝜃2 )
=𝑚 2 ∙ [0] + 𝑚 2 ∙ [0]
𝑙 𝑔 1 𝑔
[− 2 cos 𝜃1 ] [−𝑙(𝑐𝑜𝑠𝜃1 + 2 𝑐𝑜𝑠𝜃2 )]
𝑚𝑙𝑔
= (− cos 𝜃1 − 2 cos 𝜃1 − cos 𝜃2 )
2
𝑚𝑙𝑔
=− (3 cos 𝜃1 + cos 𝜃2 )
2
5.5. Defining the Lagrangian
The lagrangian is defined as:

𝐿 =𝑇−𝑉
Therefore, the lagrangian of the system is:

6
𝑚𝑙2
𝐿= (17Ω2 𝑠𝑖𝑛2 𝜃1 + 17𝜃12̇ + 12Ω2 sin 𝜃1 sin 𝜃2 + 5Ω2 𝑠𝑖𝑛2 𝜃2 + 12𝜃1̇ 𝜃2̇ 𝑐𝑜𝑠(𝜃1
24
𝑚𝑙𝑔
− 𝜃2 ) + 5𝜃22̇ ) − (− (3 cos 𝜃1 + cos 𝜃2 ))
2
𝑚𝑙2
= (17Ω2 𝑠𝑖𝑛2 𝜃1 + 17𝜃12̇ + 12Ω2 sin 𝜃1 sin 𝜃2 + 5Ω2 𝑠𝑖𝑛2 𝜃2 + 12𝜃1̇ 𝜃2̇ 𝑐𝑜𝑠(𝜃1
24
𝑚𝑙𝑔
− 𝜃2 ) + 5𝜃22̇ ) + (3 cos 𝜃1 + cos 𝜃2 ))
2

6. Derivation of the Equation of Motion


6.1. Considering the Joint is Frictionless
Since the independent generalized coordinates are 𝜃1 & 𝜃2 , by applying the Hamilton’s
principle with no generalised non conservative impressed force, the Euler Lagrange’s
equation becomes
𝑑 𝜕𝐿 𝜕𝐿
( ) − 𝜕𝜃 = 0
𝑑𝑡 𝜕𝜃1̇ 1

𝑑 𝜕𝐿 𝜕𝐿
( ) − 𝜕𝜃 = 0
𝑑𝑡 𝜕𝜃2̇ 2

Where,

) = 𝑚𝑙 2 ( 𝜃1̈ + 𝜃2̈ cos(𝜃1 − 𝜃2 ) −


𝑑 𝜕𝐿 17 1 1 1 2
( 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) + 𝜃̇2 sin(𝜃1 − 𝜃2 ))
𝑑𝑡 𝜕𝜃1̇ 12 2 2 2

(eq6.1.1)
𝜕𝐿 17 1 1 3𝑔
= 𝑚𝑙 2 (12 Ω2 sin(𝜃1 ) cos(𝜃1 ) + 2 Ω2 cos(𝜃1 ) sin(𝜃2 ) − 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − sin(𝜃1 ))
𝜕𝜃1 2𝑙

(eq6.1.2)

) = 𝑚𝑙 2 (12 𝜃2̈ + 2 𝜃1̈ cos(𝜃1 − 𝜃2 ) + 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − 2 𝜃̇1 sin(𝜃1 − 𝜃2 ))


𝑑 𝜕𝐿 5 1 1 1 2
(
𝑑𝑡 𝜕𝜃2̇

(eq6.1.3)
𝜕𝐿 1 5 1 𝑔
= 𝑚𝑙 2 (2 Ω2 sin(𝜃1 ) cos(𝜃2 ) + 12 Ω2 sin(𝜃2 ) cos(𝜃2 ) + 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − 2𝑙 sin(𝜃2 ))
𝜕𝜃1

(eq6.1.4)

From equation (6.1.1-6.1.4), two equations are obtained:


2
17𝜃1̈ + 6𝜃2̈ cos(𝜃1 − 𝜃2 ) + 6 𝜃̇2 sin(𝜃1 − 𝜃2 ) − Ω2 cos(𝜃1 ) (17 sin(𝜃1 ) + 6 sin(𝜃2 )) +
𝑔
18 𝑙 sin(𝜃1 ) = 0

(eq6.1.5)
2
6𝜃1̈ cos(𝜃1 − 𝜃2 ) + 5𝜃2̈ + 6 𝜃̇1 sin(𝜃1 − 𝜃2 ) − Ω2 cos(𝜃2 ) (6 sin(𝜃1 ) + 5 sin(𝜃2 )) +
𝑔
6 𝑙 sin(𝜃2 ) = 0

(eq6.1.6)

Applying the elimination method to both Equation (8-9), the two independent equation
motions are obtained:

7
𝟓 x (𝒆𝒒𝟔. 𝟏. 𝟓) − 𝟔 𝐜𝐨𝐬(𝜽𝟏 − 𝜽𝟐 ) x (𝒆𝒒𝟔. 𝟏. 𝟔) yields:
1 2 2
𝜃1̈ = (−36 𝜃1̇ sin(𝜃1 − 𝜃2 ) cos(𝜃1 − 𝜃2 ) − 30 𝜃2̇ sin(𝜃1 − 𝜃2 ) +
(85 − 36 cos2 (𝜃1 − 𝜃2 ))

5 Ω2 cos(𝜃1 ) (17 sin(𝜃1 ) + 6 sin(𝜃2 )) − 6Ω2 cos(𝜃1 − 𝜃2 ) cos(𝜃2 ) (6 sin(𝜃1 ) + 5 sin(𝜃2 )


18𝑔
+ (2 sin(𝜃2 ) cos(𝜃1 − 𝜃2 ) − 5 sin(𝜃1 )))
𝑙

(eq6.1.7)

𝟔 𝐜𝐨𝐬(𝜽𝟏 − 𝜽𝟐 ) x (𝒆𝒒𝟔. 𝟏. 𝟓) − 𝟏𝟕 x (𝒆𝒒𝟔. 𝟏. 𝟔) yields:


1 2 2
𝜃2̈ = (102 𝜃1̇ sin(𝜃1 − 𝜃2 ) + 36 𝜃2̇ sin(𝜃1 − 𝜃2 ) cos(𝜃1 − 𝜃2 ) +
(85 − 36 cos 2 (𝜃1 − 𝜃2 ))

17 Ω2 cos(𝜃2 ) (6 sin(𝜃1 ) + 5 sin(𝜃2 )) − 6Ω2 cos(𝜃1 − 𝜃2 ) cos(𝜃1 ) (17 sin(𝜃1 ) +


6𝑔
6 sin(𝜃2 ) + (18 sin(𝜃1 ) cos(𝜃1 − 𝜃2 ) − 17 sin(𝜃2 )) )
𝑙

(eq6.1.8)

6.2. Introducing Rayleigh Dissipation Force as Friction on Joints


The friction force contibuted by both joints is modeled as,
1 2 2
𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛 = (𝑐1 𝜃1̇ + 𝑐2 𝜃2̇ + 𝑐12 𝜃1̇ 𝜃2̇ )
2

This force is then transformed to the generalised force based on the two chosen
independent generalised coordinates
𝜕𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛
𝑄𝜃1 = = −𝑐1 𝜃1̇ − 𝑐12 𝜃2̇
𝜕𝜃1̇

𝜕𝐹𝑓𝑟𝑖𝑐𝑡𝑖𝑜𝑛
𝑄𝜃2 = = −𝑐2 𝜃2̇ − 𝑐12 𝜃1̇
𝜕𝜃2̇

Therefore, the two Euler-Lagrange equations from the previous section have to be
modified according to the Hamilton’s principle incorporating the friction force as the
generalised force.
𝑑 𝜕𝐿 𝜕𝐿
( )− = 𝑄𝜃1
𝑑𝑡 𝜕𝜃1̇ 𝜕𝜃1

𝑑 𝜕𝐿 𝜕𝐿
( )− = 𝑄𝜃2
𝑑𝑡 𝜕𝜃2̇ 𝜕𝜃2

Where,

(𝜕𝜃 ̇ ) = 𝑚𝑙 2 (12 𝜃1̈ + 2 𝜃2̈ cos(𝜃1 − 𝜃2 ) − 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) + 2 𝜃̇2 sin(𝜃1 − 𝜃2 ))
𝑑 𝜕𝐿 17 1 1 1 2
𝑑𝑡 1

(eq6.2.1)
𝜕𝐿 17 1 1 3𝑔
= 𝑚𝑙 2 (12 Ω2 sin(𝜃1 ) cos(𝜃1 ) + 2 Ω2 cos(𝜃1 ) sin(𝜃2 ) − 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − 2𝑙 sin(𝜃1 ))
𝜕𝜃1

(eq6.2.2)

8
(𝜕𝜃 ̇ ) = 𝑚𝑙 2 (12 𝜃2̈ + 2 𝜃1̈ cos(𝜃1 − 𝜃2 ) + 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − 2 𝜃̇1 sin(𝜃1 − 𝜃2 ))
𝑑 𝜕𝐿 5 1 1 1 2
𝑑𝑡 2

(eq6.2.3)
𝜕𝐿 1 5 1 𝑔
= 𝑚𝑙 2 (2 Ω2 sin(𝜃1 ) cos(𝜃2 ) + 12 Ω2 sin(𝜃2 ) cos(𝜃2 ) + 2 𝜃1̇ 𝜃2̇ sin(𝜃1 − 𝜃2 ) − 2𝑙 sin(𝜃2 ))
𝜕𝜃1

(eq6.2.4)

From equation(6.2.1-6.2.4), two equations are obtained:


2
17𝜃1̈ + 6𝜃2̈ cos(𝜃1 − 𝜃2 ) + 6 𝜃̇2 sin(𝜃1 − 𝜃2 ) − Ω2 cos(𝜃1 ) (17 sin(𝜃1 ) + 6 sin(𝜃2 )) +
𝑔 12𝑄𝜃1
18 𝑙 sin(𝜃1 ) = 𝑚𝑙2

(eq6.2.5)
2
6𝜃1̈ cos(𝜃1 − 𝜃2 ) + 5𝜃2̈ + 6 𝜃̇1 sin(𝜃1 − 𝜃2 ) − Ω2 cos(𝜃2 ) (6 sin(𝜃1 ) + 5 sin(𝜃2 )) +
𝑔 12𝑄𝜃2
6 𝑙 sin(𝜃1 ) = 𝑚𝑙2

(eq6.2.6)

Applying the elimination method to both Equation (8-9), the two independent equation
motions are obtained:
𝟓 x (𝒆𝒒𝟔. 𝟐. 𝟓) − 𝟔 𝐜𝐨𝐬(𝜽𝟏 − 𝜽𝟐 ) x (𝒆𝒒𝟔. 𝟐. 𝟓) yields:
1 2 2
𝜃1̈ = (−36 𝜃1̇ sin(𝜃1 − 𝜃2 ) cos(𝜃1 − 𝜃2 ) − 30 𝜃2̇ sin(𝜃1 − 𝜃2 )
(85 − 36 cos 2 (𝜃1 − 𝜃2 ))

+5 Ω2 cos(𝜃1 ) (17 sin(𝜃1 ) + 6 sin(𝜃2 )) − 6Ω2 cos(𝜃1 − 𝜃2 ) cos(𝜃2 ) (6 sin(𝜃1 )


+ 5 sin(𝜃2 )
18𝑔 60𝑄𝜃1 72𝑄𝜃2
+ (2 sin(𝜃2 ) cos(𝜃1 − 𝜃2 ) 5 sin(𝜃1 )) + − cos(𝜃1 − 𝜃2 ) )
𝑙 𝑚𝑙2 𝑚𝑙2

(eq6.2.7)

𝟔 𝐜𝐨𝐬(𝜽𝟏 − 𝜽𝟐 ) x (𝒆𝒒𝟔. 𝟐. 𝟓) − 𝟏𝟕 x (𝒆𝒒𝟔. 𝟐. 𝟓) yields:


1 2 2
𝜃2̈ = (102 𝜃1̇ sin(𝜃1 − 𝜃2 ) + 36 𝜃2̇ sin(𝜃1 − 𝜃2 ) cos(𝜃1 − 𝜃2 )
(85 − 36 cos 2 (𝜃1 − 𝜃2 ))

+17 Ω2 cos(𝜃2 ) (6 sin(𝜃1 ) + 5 sin(𝜃2 )) − 6Ω2 cos(𝜃1 − 𝜃2 ) cos(𝜃1 ) (17 sin(𝜃1 ) +


6𝑔 72𝑄𝜃1
6 sin(𝜃2 ) + (18 sin(𝜃1 )) cos(𝜃1 − 𝜃2 ) − 17 sin(𝜃2 )) − cos(𝜃1 − 𝜃2 ) +
𝑙 𝑚𝑙2
204𝑄𝜃2
)
𝑚𝑙2

(eq6.2.8)

9
7. Simulation
7.1. Instructions
There are 4 .m files in simPendulum folder. Simply run “doSim.m” will generate state plot,
energy plot and 3D animation in parallel windows. All parameters are defined in “Define
constants” section of the code, including length, mass of pendulum links, damping
coefficients, angular velocity, and initial state conditions. Starting position, width and
height of plotting windows can be set by “Gx, Gy, Gw, Gh” respectively. Definition of all
parameters are well commented in the code.

7.2. Results of Simulation


10 scenarios consisting of 3 Ω values, initial state conditions being stable equilibrium, non-
equilibrium and unstable equilibrium, damping coefficients 𝑐1 , 𝑐2 being zero and non-zero
(frictionless and with friction) are presented in the following.

In the frictionless system ideally, due to the stability characteristics of the rotating
pendulum, asymptotic stability could never be reached if initial conditions of the states
are not set to equilibrium points specified as below. The states, kinetic energy and
potential energy will present as periodic signals, while total energy remains constant
throughout time (i.e. scenario 1, 3, 7). Note that when either of 𝑚 or 𝑛 is set to an odd
number, the system is at its unstable equilibrium where accumulated errors can cause
the pendulum to go unstable over time. Thus an additional influx of energy caused by a
non-zero Ω would increase the total energy of the system (i.e. scenario 5, 9).
𝜃1 (0) 𝑚π
𝜃2 (0) 𝑛π
= [ ] 𝑤ℎ𝑒𝑟𝑒 𝑚, 𝑛 ∈ ℤ
𝜃1̇ (0) 0
̇
[𝜃2 (0)] 0

In the system where friction plays a decent role, the damping effect will cause work to be done to
dissipate total energy of the system, hence an asymptotic stability will be reached whether or not
the initial conditions are at equilibrium. Note that the equilibrium position of the pendulum may
possess constant non-zero 𝜃1 , 𝜃2 (i.e. scenario 4, 6, 8, 10). When the initial states are at an
unstable equilibrium (i.e. scenario 6, 10), the accumulated errors will as well kick in and make the
system unstable over time due to a non-zeroΩ, introducing a sudden increase of total energy
before an equilibrium is reached.

10
𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 0
1. Ω = 0, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/JCYMxZycofs
𝜃1 (0) 2 0
0
[ 𝜃2̇ (0) ] [0]

𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 2
2. Ω = 0, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/BYCPpbTRWRg
𝜃1 (0) 2 2
0
̇
[ 𝜃2 (0) ] [0]

11
𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 0
3. Ω = π, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/W2PLWjLcDgY
𝜃1 (0) 2 0
0
[ 𝜃2̇ (0) ] [0]

𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 2
4. Ω = π, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/mahp9PviQ4w
𝜃1 0( ) 2 2
0
[ 𝜃2̇ (0) ] [0]

12
𝜃1 (0) π
𝜃2 (0) π 𝑐1 0
5. Ω = π, ̇ = [ ] , [𝑐 ] = [ ] , Video URL: https://youtu.be/9Sm-CaU1M1Y
𝜃1 (0) 0 2 0
̇
[ 𝜃2 (0) ] 0

𝜃1 (0) π
𝜃2 (0) π 𝑐1 2
6. Ω = π, ̇ = [ ] , [𝑐 ] = [ ] , Video URL: https://youtu.be/O0ypqHirQng
𝜃1 (0) 0 2 2
̇
[ 𝜃2 (0) ] 0

13
𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 0
7. Ω = 2π, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/GTeigfCRpFk
𝜃1 (0) 2 0
0
[ 𝜃2̇ (0) ] [0]

𝜋
𝜃1 (0)
3
𝜃2 (0) 𝜋 𝑐1 2
8. Ω = 2π, ̇ = 2 , [𝑐 ] = [ ] , Video URL: https://youtu.be/XxxlaK1WHbs
𝜃1 (0) 2 2
0
[ 𝜃2̇ (0) ] [0]

14
𝜃1 (0) π
𝜃2 (0) π 𝑐1 0
9. Ω = 2π, ̇ = [ ] , [𝑐 ] = [ ] , Video URL: https://youtu.be/F08MPMAcBFU
𝜃1 (0) 0 2 0
̇
[ 𝜃2 (0) ] 0

𝜃1 (0) π
𝜃2 (0) π 𝑐1 2
10. Ω = 2π, ̇ = [ ] , [𝑐 ] = [ ] , Video URL: https://youtu.be/ZGMvQQl8w4I
𝜃1 (0) 0 2 2
̇
[ 𝜃2 (0) ] 0

15

Vous aimerez peut-être aussi