002 Constraints and Generalized Coordinates
002 Constraints and Generalized Coordinates
Constraints
Problem Statement:
In solving mechanical problems, we start with the 2nd law
Fj
ji Fi
(e)
miri (*)
In principle, one can solve for ri(t) (trajectory) for the ith particle by
specifying all the external and internal forces acting on it .
Holonomic Constraints
Holonomic constraints can be expressed as a function in terms of the
coordinates and time,
f r1 , r2 ,; t 0 rij
ri
rj
r r
2
e.g. (a rigid body) c 0
2
i j ij O
Generalized Coordinates
• Without constraints, a system of N particles has 3N dof
• With K constraint equations, the # dof reduces to 3N-K
r1 r1 q1 , q2 , , q3 N K , t ri and q1 , q3 N K
are related by
a point transformation
rN rN q1 , q2 , , q3 N K , t
• The goal is to describe the time evolution of the system in the set of
(3N-K) independent (proper) generalized coordinates.
6
Generalized Coordinates
No specific rule in finding the most “suitable” (resulting in simplest EOM)
7
Generalized Coordinates
Example: In Cartesian coord ri :
O x
x1 , y1 , x2 , y2 we have 4 dof
1 l x12 y12 l 2 0
(x1, y1) 2 constraints:
2 2
m1 x
2 1 x y 2 y1 l2 0
2 l
So, there are only 2 indep dof…
y
m2 One choice of generalized coords q j is:
(x2, y2)
1 , 2 2 indep dof
(Double Plane Pendulum)
And, they are linked to the Cart. coord through:
Non-Holonomic Constraints
- can’t use constraint equations to eliminate dependent coordinates
- in general, solution is problem specific.
z y
a Described by 4 coordinates:
f
(x, y) of the contact point
v : orientation of disk-
angle of disk axis with x-axis
f : angle of rotation of the disk
O x
9
1. No-slip condition:
s af v af
y top view
2. Disk rolling vertically
v disk axis see graph v sin
v -v cos
x v sin
y v cos x
10
dx df
dt af sin a sin dt dx a sin df 0
or
dy af cos a cos df dy a cos df 0
dt dt
- The net force on each particle vanishes: Fi 0 (note: i labels the particles)
Fi Fi( a ) fi
Then, we have F
i
i
(a)
ri fi ri 0
i
the virtual work done by the constraint forces along the virtual displacement
must be zero.
Geometric view
fi
ri >> More on this later for
N particles with K constraints, motion is restricted
fi ri or fi ri 0 on a (3N-K)-D surface and the constraint forces fi
must be to that surface.
For ri to be consistent with constraints means that the net virtual work
from the forces of constraints is zero !
f r 0
i
i i
14
i i
With the virtual displacements satisfying the constraints leaves us with the
statement,
i ri 0
F
i
(a)
Note: Since the coordinates (and the virtual variations) are not necessarily
independent. They are linked through the constraint equations. The
Principle of Virtual Work does not imply,
?
j
j
q j 0
D’Alembert’s Principle
Now, we consider the more general case when the system is not necessary in
equilibrium so that the net force on the particles is NOT zero. We
continue to assume the constraints forces to be unknown a priori…
D’Alembert’s Principle
We have, F p r 0
i
i i i
This gives, F
i
i
(a)
p i ri fi ri 0
i
18
D’Alembert’s Principle
Again, since the coordinates (and the virtual variations) are not necessary
independent. This does NOT implies, Fi (a)
p i 0 for the individual i.
z
equation of motion: m
r F(a) f
r ( x, y , z ) equation of constraint: g (r , t ) 0
Here,
m
- F(a) is the known applied force
r (t)
- And, we model the unknown
y
constraint force by the vector f.
g (r, t ) 0
x
Note: r(t) has 3 unknown trajectory (red) is constraint to move in a 3-
components + 1 constraint 1=2 dimensional surface (blue g (r, t ) 0 ).
20
z z
f f
y y
x x
Observation: For a given f, adding a component // to the surface will still
keep the particle on the surface (satisfying g(r, t)=0) but will result with an
additional acceleration along the surface).
21
g (r, t ) surface
f
m
x F ( a ) g (r, t ) 4 unknowns r and
This gives, 4 equations
g (r, t ) 0
22
m
r F ( a ) g (r, t ) 4 unknowns r and
4 equations
g (r, t ) 0
This system is solvable but now we would like to solve the system w/o using the
constraint explicitly …
Note that g is to the surface of constraint and we can project the dynamical
equation onto the tangent plane of the constraint surface at (r, t).
To do that, take e a and eb as two basis vectors spanning the tangent plane to the
constraint surface at (r, t). Dotting the above Eq to e a and eb gives two
independent scalar equations,
mr F e
(a)
a g (r, t ) e a 0
mr F e
(a)
b g (r, t ) eb 0
23
Together with the constraint equation itself, we then have 3 eqs for the 3
unknown components of r.
mr F e
(a)
0
a ,b 3 unknowns r
3 equations
g (r, t ) 0
So, now, in principle, we can solve for the dynamical equation (EOM), r(t),
without knowing the constraint forces f explicitly.
mr F e
(a)
a ,b 0
Geometric Interpretation:
The K constraints restrict the system to a (3N-K)-D surface within the 3N-D
space. There are (3N-K) ek vectors spanning that tangent plane to the
constraint surface so that the above expression gives (3N-K) equations that the
problem can be solved without knowing the constraint forces explicitly.
25
D’Alembert’s Principle
F
i
i
(a)
p i ri 0
?
j
j
q j 0
D’Alembert’s Principle
F
i
i
(a)
p i ri 0
?
j
j
q j 0
d T T
Qj 0
dt q j q j
27
d 1 2 dT
m
r r mr U r g r
dt 2 dt
Consider the full-time derivative of g , we have,
dg g dx g dy g dz g g
g
r
dt x dt y dt z dt t t
28
m
r r U r g r
With E=T+U,
dT dU U g dE U g
dt dt t t dt t t
29
g
g r 0 and constraint force won’t do work!
t
Rheonomous (g explicitly depends on t) Holonomic Constraints:
g
g r 0 and constraint force can do work!
t