Professional Documents
Culture Documents
Lec14 PDF
Lec14 PDF
Lecture 14
Lagrangian Dynamics: Virtual Work and
Generalized Forces
L =T −V
� �
d ∂L ∂L
− = Qi
dt ∂q̇i ∂qi
All qi are scalars.
qi : Generalized Coordinates
L: Lagrangian
Qi : Generalized Forces
Virtual Displacement:
Admissible variations: hypothetical (not real) small change from one geometri
Bead on Wire
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Admissible Variations/Virtual Displacements 2
δ �= d
δx �= dx
dx implies t involved.
y = f (x)
df
dy = · dx
dx
df (x)
δy = · δx
dx
Generalized Coordinates
Minimal, complete, and independent set of coordinates
Figure 2: 2D rod with fixed translation in x and y but free to rotate about θ.
Figure by MIT OCW.
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Virtual Work 3
Holonomic Systems.
Virtual Work
�
W = f i · dr i ← Actual Work
i
�
δW = f i · δr i ← Virtual Work
i
f i = f applied
i
+ f constrained
i
Constrained: Friction in roll. Constraint to move on surface. Normal forces.
Tension, rigid body constraints.
�
δw = f app
i
· δr i = 0 at equilibrium
i
�
fi = 0
i
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Virtual Work 4
Figure 3: Hanging rigid bar. The bar is fixed translationally but is subject to
a force, F . It therefore can displace itself rotationally about its pivot point.
Figure by MIT OCW.
Displacement:
δy A = −aδθĵ
δy B = −lδθĵ
Forces:
F = −F ĵ
R = Rĵ
Two forces applied: i = 2
δw = F lδθ − Raδθ = 0
Fl
R= at equilibrium
a
Could also have taken moments about O.
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Virtual Work 5
Figure 4: Tethered cart. The cart is attached to a tether that is attached to the
wall. Figure by MIT OCW.
δw = F δyB − Rδxc = 0
yB = l sin θ
df (x)
Using δy = dx δxc
F
−F l cos θ + 2R sin θ = 0 ⇒ R = at equilibrium
2 tan θ
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Generalized forces for Holonomic Systems 6
� �
δw = f i · δr i = Qi δqj
i
r i = ri (q1 , q2 , . . . qj )
ri : Position of point where force is applied
m
� ∂ri
δri = δqj
j
∂qj
Substitute:
n m m ��
n �
� � ∂ri � ∂r i
fi · δqj = fi ·∂qj
i j
∂qj j i
∂qj
n
� ∂ri
Qj = fi · Generalized Forces
i
∂qj
f i = f NC
i
+ f iCONS.
fiCONS. : Gravity, Spring, and Buoyancy are examples; Potential Function Exists.
∂V
f CONS. = −
∂r
Example:
Vg = mgz, r = zĵ
f g = −mg ∂z
dz ĵ = −mgĵ
∂r i ∂V ∂r ∂V
ficons. · =− =−
∂q ∂r ∂qj ∂qj
The conservative forces are already accounted for by the potential energy term
in the Lagrangian for Lagrange’s Equation
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Example: Cart with Pendulum, Springs, and Dashpots 7
n
� ∂r i
QN
j
C
= fN
i
C
·
i
∂qj
� �
d ∂L ∂L
− = QN
j
C
dt ∂q̇j ∂qj
Lagrange’s Equation
QN
j
C
= nonconservative generalized forces
∂L ∂V
∂qj contains ∂qj .
Figure 6: The system contains a cart that has a spring (k) and a dashpot (c)
attached to it. On the cart is a pendulum that has a torsional spring (kt ) and a
torsional dashpot (ct ). There is a force applied to m that is a function of time
F = F (t) We will model the system as 2 particles in 2 dimensions. Figure by
MIT OCW.
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Example: Cart with Pendulum, Springs, and Dashpots 8
Thus, there are a net 2 degrees of freedom. For 2.003J, all systems are holonomic
(the number of degrees of freedom equals the number of generalized coordinates).
q1 = x
q2 = θ
−(kx + cẋ)ı̂
F 2 : Two torques:
τ = −(kt θ + ct θ̇k̂
F 3:
F 3 = F0 sin ωtı̂
rA = xı̂ = q1 ı̂ ← r 1
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Example: Cart with Pendulum, Springs, and Dashpots 9
Q1 :
∂r1 ∂r 2 ∂r 3
∂q1 = 1ı̂, ∂q1 = 0, ∂q1 = 1ı̂
Q1 = −cq̇1 + F0 sin ωt
∂r1 ∂r2 ∂r 3
∂q2 = 0, ∂q2 = 1k̂, ∂q2 = l cos q2 ı̂ + l sin q2 ĵ
Kinematics
M:
rM = xı̂
ṙM = ẋı̂
r̈M = ẍı̂
m:
Lagrangian
L =T −V
T = TM + Tm
1 1
TM = M (ṙ M · ṙM ) = M ẋ2
2 2
1
Tm = m(ṙ m · ṙm ) (1)
2
1
= m(ẋ2 + 2lẋ cos θθ̇ + l2 θ̇2 ) (2)
2
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Example: Cart with Pendulum, Springs, and Dashpots 10
1 1
T = M ẋ2 + m(ẋ2 + 2lẋ cos θθ̇ + l2 θ̇2 )
2 2
1 2 1
V = kx + (−mgl cos θ) + kt θ2
2 2
Substitute in L = T − V
1 1 1 1
L= M ẋ2 + m(ẋ2 + 2lẋθ̇ cos θ + l2 θ̇2 ) − kx2 + mgl cos θ − kt θ2
2 2 2 2
Equations of Motion
� � � �
d ∂L ∂L
Use dt ∂ q̇i − ∂qi
= Ξi to derive the equations of motion. Ξi = Qi .
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].
Example: Cart with Pendulum, Springs, and Dashpots 11
∂L
= mlẋθ̇(− sin θ) − mgl sin θ − kt θ
∂θ
∂L
Cite as: Thomas Peacock and Nicolas Hadjiconstantinou, course materials for 2.003J/1.053J Dynamics and
Control I, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology.
Downloaded on [DD Month YYYY].