Solution Chapter 2 Dynamic Systems Modeling Simulation and Control Kluever
Solution Chapter 2 Dynamic Systems Modeling Simulation and Control Kluever
2.1 The free-body diagram (FBD) is shown below, assuming z zin (t ) and z zin (t ) :
b1 z
+ z
m
k ( z
z –
– z
z in
in) b2 z z in
Applying Newton’s
Newton’s second
second law (summing positive upward):
2.2 The free-body diagram (FBD) is below, assuming xin (t ) x and x 0
+ x
k xin x
bx
m
Applying Newton’s
Newton’s second
second law (positive to the right):
F k ( xin x) bx mx
Rearrange with dynamic variables on the left – hand side and input variable xin (t ) on the right-hand side.
left – hand
+ x
f a (t ) bx
m
Applying Newton’s
Newton’s second
second law (positive to the right):
F f a (t ) bx mx
Rearrange with dynamic variables on the left-hand side and input variable f a on the right-hand side.
mv bv f a (t ) Mathematical model using velocity v as dynamic variable
2.4 FBD of mass m and “massless node,” assuming z1 z 2 and z
2 0
+ z 2 + z 1
Massless node: F bz2 k ( z1 z2 ) mnode z 2 0 (node has zero mass; mnode = 0)
Rearrange with dynamic variables ( z1 , z2 , z1 , z 2 ) on the left-hand side and input variable f a on the right-
hand side:
1 z
2.5 FBD of mass m and “massless node,” assuming z 2 and z 2 0 :
+ z 2 + z 1
Massless node:
F kz 2 b( z
1 z
2 ) mnode
z 2 0
Mass m:
F b( z1 z2 ) f a (t ) mz 1
Rearrange with dynamic variables ( z1 , z2 , z1 , z 2 ) on the left-hand side and input variable f a on the right-
hand sides:
1 b( z
m z 1 z 2 ) f a (t ) Mathematical model
2 z 1 ) kz 2 0
b( z
2.6 FBD of mass m when x < 0.5 m (no contact with spring):
+ x
m
bx
+ x
k ( x 0.5)
m
bx
bx 0
m x for x < 0.5 m Mathematical model
b x k ( x 0.5) 0 for x > 0.5 m
m x
f a (t ) k1 z 1
m1
b z1 z 2
Friction force
k2 z 2
m2
Mass m : F k z b( z z ) m z
2 2 2 1 2 2 2
Rearrange with dynamic variables on the left-hand side and input variable f a on the right-hand side:
2.8 Horizontal displacements of the link at the spring connections are L1sinθ (upper) and L2sinθ
(lower). For small rotation angles, sin .
FBD of the link and mass m assuming L1 x 0 (all springs are in compression) and x 0
+ x
k1 ( L1 x) bx
m
J k2 x
k3 L2
Apply Newton’s second law: sum torques about pivot point (clockwise) and sum forces on mass m:
Link: + T k (L x)L k L L
1 1 1 3 2 2 J
Mass: + F k (L x) bx k x mx
1 1 2
k 2 ( x2 x1 )
k1 x1
m1 m2
Mass m : F k ( x x ) m x
2 2 2 1 2 2
m1 x1 k1 x1 k2 ( x1 x2 ) 0 Mathematical model
m2 x2 k2 ( x2 x1 ) 0
Because x1 and x2 cannot both be equal to zero for all time 0 ≤ t ≤ ∞, the two bracket terms must be set equal
m1 x1 b x1 x2 k1 k 2 x1 k1x 2 0
m2 x2 b x2 x1 k1 x2 x1 f a (t )
+ x1 + x2
b
k 2
m1 m2 f a (t )
k 1
FBD of both masses assuming x2 x1 (spring k 1 in tension), x2 x1 0 , and x1 0 (spring k 2 in tension):
b x2 x1 f a t
k2 x1
m1 m2
k1 ( x2 x1 )
Mass m : F b x x k ( x x ) f t m x
2 2 1 1 2 1 a 2 2
Rearranging:
10
m1 x1 b1x1 k1 x1 x 2 f a (t )
m2 x2 b2 x2 k1 x2 x1 k 2x 2 0
Mechanical system:
+ x1 + x2
f a (t ) b2
k 1
b1
m1 m2
k 2
f a t b2 x2
m1 m2
b1x1 k1 ( x2 x1 ) k 2 x2
Rearranging:
11
m1 x1 k1x1 k 2 x1 x 2 0
m2 x2 k 2 x 2 x1 0
Mechanical system:
+ x1 + x2
k 1 k 2
m1 m2
k1 x1
m1 m2
k2 x2 x1
Rearranging:
m1 x1 k1x1 k 2 x1 x 2 0 Mathematical model - matches
m2 x2 k2 x2 x1 0 given modeling equations
12
d 1
Power where total energy J 2 (kinetic energy)
dt 2
d d
Therefore J
d dt
FBD of disk J :
J
T b = J
Substitute for J from the torque equation into the power equation ( ): b
Power dissipated = b
2
Using the free-body diagram from part (a), the only torque is the friction torque. Summing torques
(positive rotation in clockwise direction): T b = J
Therefore, Power b b 2
Power dissipated = b 2
The power dissipated equation must have a minus sign since friction causes energy losses, 0
13
Input
torque,
T in
mg ,
weight of
mass m
b ,friction torque
T T in
b mgr J
14
Torsional
J 1 shaft torque, J 2
k 1 2 +
+
r 2
f c
Gear 1: T T in f c r1 J gear1 gear1 0
1 1
Because Gear 1 has negligible inertia, Tin f c r 1 or f c T in . Substitute f c T in for the contact force
r 1 r 1
in the equation for Disk J 1 . Rearranging we obtain:
r 2
J11 k 1 2 T in Mathematical model
r 1
J 22 b2 k 2 1 0
We can substitute the gear ratio N = r 2/r 1 into the first equation if desired.
15
2.16 Free-body diagram of both disks, assuming 1 2 , 1 0 and 2 0 :
Torsional
Input J 1 shaft J 2
+
torque, + torque,
T in k 1 1 2
Disk J 2: T k k
1 1 2 2 2 J 22
Rearranging we obtain:
b k ( ) T
J 1 Mathematical model
1 1 1 1 2 in
16
kd 1
b d2 d
3
+
f a (t )
Note that for small angle , the vertical deflection of the left end is d1 sin d 1 and the vertical
deflection of the right end is d2 d3 sin d 2 d3
.
Apply Newton’s second law and sum torques about the pivot (counter-clockwise):
T kd d f d
1 1 a 2 b d 2 d 3 d 2 d 3 J
Rearranging we obtain:
2
J b d 2 d 3 kd12 f a (t )d 2 Mathematical model
17
2.18 Using the polyfit command in MATLAB, fit the data with the spring deflection as the
independent variable and the load force as the dependent variable. The MATLAB commands are
The third-order polynomial coefficients are pp1 = [-0.0213 -0.0000 8.0449 -0.0000 ] and
hence the spring force is F k 0.0213
x 8.0449 x where x is in mm. The MATLAB command
3
The same steps are applied to the data for Spring #2. However, Spring #2 exhibits a linear relationship
with deflection (see plots below):
Spring #1 has a nonlinear relationship with deflection (cubic polynomial), while Spring #2 has a
linear relationship with deflection.
60 80
Data 60
40 Polynomial fit Data
N N 40 Linear fit
, ,
g g
inr 20 inr 20
ps ps
n n
o 0 o 0
e e
cr cr
of of -20
d -20 d
a a
o o
L L -40
-40
-60
-60 -80
-8 -6 -4 -2 0 2 4 6 8 -8 -6 -4 -2 0 2 4 6 8
Spring #1 deflection, mm Spring #2 deflection, mm
18
%
% Problem 2.19
%
% constants
Fst = 10;
Fc = 7;
b = 70;
cpts = [ 0.001 0.002 0.005 ];
xdot = linspace(-0.05,0.05,10000);
for i=1:3
c = cpts(i);
Ff(i,:) = sign(xdot).*(Fc + (Fst-Fc).*exp(-abs(xdot)./cpts(i))) + b.*xdot;
end
plot(xdot,Ff)
grid
xlabel('Relative velocity, m/s')
ylabel('Friction force, N')
15
N 5
,
e
cr
of
n
0
oi
t
ci
r
F -5
-10
-15
-0.05 -0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03 0.04 0.05
Relative velocity, m/s
At very low relative velocities (near zero) the friction force instantaneously switches between +/- the static
friction force F st (i.e., -10 N to +10 N) regardless of the value for the velocity coefficient c. As the
magnitude of the relative velocity increases from zero the friction force decreases to a value nearly equal to
the dry friction force F C = 7 N. The “rate” of decrease in friction force near zero velocity depends on the
coefficient c where smaller values of c produce a sharper decrease in friction near zero relative velocity. At
higher relative velocities (such as 0.02 m/s) the friction force is simply the sum of dry friction F C = 7 N and
viscous friction b x regardless of coefficient c.
19
%
% Problem 2.20
%
xdot = [-1.5:0.1:1.5]; % range of xdot values (m/s)
v = 0.2; % m/s
Fd = 4500*xdot./sqrt(xdot.^2 + v^2);
plot(xdot,Fd)
grid
xlabel('Relative velocity, m/s')
ylabel('Damper force, N')
The plot shows that when the magnitude of relative velocity is small, the damper force is linear with
velocity, but when the magnitude of relative velocity is large, the damper force is large and nearly
constant at 4500 N.
5000
4000
3000
2000
N
,
e 1000
cr
of
r 0
e
p
m -1000
a
D
-2000
-3000
-4000
-5000
-1.5 -1 -0.5 0 0.5 1 1.5
Relative velocity, m/s
20
2.21 The Mfile for creating the plot of damper force vs. relative velocity is
%
% Problem 2.21
%
xdot = linspace(-1.5,1.5,500);
v1 = 0.06;
v2 = 0.19;
Fd = (3389*(xdot-v1)./sqrt((xdot-v1).^2 + v2^2) ) + 1020.84;
plot(xdot,Fd)
5000
4000
3000
N
, 2000
e
cr
of
r 1000
e
p
m
a 0
D
-1000
-2000
-3000
-1.5 -1 -0.5 0 0.5 1 1.5
Relative velocity, m/s
The plot looks much like the plot from P roblem 2.20. When the relative velocity is “small” (near zero)
the damper force is approximately linear with x . Note that the magnitude of the damper force for
negative values of relative velocity (compression stroke) is much less than corresponding force from
Problem 2.20. Large positive relative velocity exhibits a nearly constant damper force of about 4400 N
(extension) while large negative relative velocity shows a nearly constant damper force of about -2300 N
(compression).
21
Gd 4
2.22 The round-wire spring constant is k
8 ND3
N = number of coils ( = 5)
For stainless steel, G = 77.2 GPa = 77.2 (109) Pa (or N/m²)
k
77.2 10 N/m 1 mm
9 2 4
1 m
571.85 N/m
3
8 5 15 mm 1000 mm
22
2.23 For a square-wire coiled spring (cross-sectional area = 0.8 mm 2), the spring constant is
Gt 4
k
5.6 ND3
t 0.8 0.894 mm , using G = 77.2 (109) or N/m² for stainless steel:
k
77.2 10 N/m 0.894 mm
9 2 4
1 m
522.84 N/m
3
5.6 5 15 mm 1000 mm
23
2.24 Draw the FBDs for all three disks, assuming 1 2 and 2 3
Viscous Torsional
T in friction + shaft
+ + T L
torque, torque,
b 1 2 k ( 2 3 )
Disk, J 2 Disk, J 3
Disk J 1
(Impeller) (Turbine) (Load)
Disk J 2: T b 1 2 k 2 3 J 2 2
J11 b 1 2 Tin (t ) Mathematical model
J 2 2 b 2 k
1 2 3 0
J 33 k 3 2 T L
24
d
Robot arm
mg
Gear 2 Torsional
+ shaft torque,
+
Disk J 1 k 1 2
d cos 2 90
Input torque,
Gear 1
T in
Note that the moment of inertia of the robot arm about the rotation axis is J 2 J cm md (parallel axis
2
theorem) where J cm is the moment of inertia of the arm about its c.m.
1
f c T in
r 1
r 2
Substitute for contact force f c and gear ratio N and rearrange:
r 1
25
2.26 Draw the FBDs of masses m1 and m2 assuming xin > x2 (spring k 2 is compressed), x1 > x2
(spring k 1 is in tension), xin x2 , and x1 x2 .
+ x2 + x1
Stiffness force
Stiffness force
Frame stiffness force between cart and head
between cart and head
k2 xin x2 k1 x1 x2 k1 x1 x2
m2 m1
Frame vibrational friction Friction force between Friction force between
cart and head cart and head
b2 xin x2
b1 x1 x2 b1 x1 x2
Move all dynamic variables to the left-hand sides and all input variables to the right-hand sides:
m1 x1 b1 x1 x2 k1 x1 x 2 0
Mathematical model
m2 x2 b2 x2 b1 x2 x1 k1 x 2 x1 k 2x 2 b2x in k 2x in
26
2.27 FBD of both masses assuming z1 z w , z2 z 1 (i.e., both springs are in compression) and z2 z 1 ,
and z 2 0 :
k1 z1 z w
k2 z2 z 1 b1 z2 z 1
m2
f a (t ) b2 z 2
27
2.28 When θ = 0 (level), the return spring k 2 has compressive pre-load force F L . When xc 0 ,
pushrod “spring” k 1 is undeflected.
Draw the FBD of the rocker arm (moment of inertia J ) and assume a small rotation angle θ so that the
vertical deflection of each end of the rocker arm is L1 sin L1 (left end) and L2 sin L2 (right end).
Furthermore, assume θ > 0 and xc L1 (pushrod spring k 1 is compressed)
friction
torque,
+
b
k1 xc L1
k2 L2 F L
Pushrod force
(compressive only)
Note that the pushrod force can only be compressive, which occurs when xc L1
In order to compute the cam-follower displacement xc for static equilibrium with a level rocker arm
(θ = 0) use the compressive pushrod equation with 0
F L L2
Cam-follower displacement to balance return-spring pre-load force: xc
k1L1
28
2.29 FBD of each mass assuming z1 z2 , z2 z 3 (springs in tension) and z1 z 2 and z2 z 3
b z1 z 2 b z2 z 3
F a
m1 m2 m3
29
2.30 Draw the FBD of both masses assuming z 2 z 1 (spring k 1 is in compression), z 2 z 1 , and
z in z 2 (ignore weight terms since displacements are measured from static equilibrium)
m1
m2
k2 zin z 2
Apply Newton’s second law and sum all forces (positive upward):
Rearrange and place all dynamic variables on the left-hand side and input (z in) on the right-hand
side:
30
2.31 Draw the FBD of both masses with sliding friction (dry friction), assuming x1 x2 and x1 > 0
m2
where F f Fdry sgn x1 x2 k Nc sgn x1 x2 and k is the kinetic friction coefficient and N c is the
normal clamp force.
Apply Newton’s second law and sum forces on all masses (positive to the right):
Clamp mass: F F f kx1 bx1 FPZT m1x1 (holds for sliding contact)
Slide mass: F F f m2 x2
For the case of “stiction,” we have x1 x2 and there is no relative motion between mass m1 and
m2 (in addition x1 x2 ). The FBD for the stiction case is below:
m2
kx1 m1 m1 m2
+x1
bx1
F PZT
Therefore the mathematical model for the stiction case is (m1 m2 ) x
1 b x1 kx1 F PZT
To compute stiction force F c , draw FBD with equal and opposite stiction force acting on m1 and m2 :
m2
31
Slide mass: F Fst m2 x2 m2 x1 (note that x2 x1 for stiction)
Clamp mass: F kx1 bx1 FPZT Fst m1x1
Because x1 x2 , substitute clamp-mass equation (stiction case) for x1 and solve for F st :
m2
F st F PZT b x1 kx1 Stiction force (for joined masses)
m1 m2
For the “no-clamp” (release) case, use the first FBD with F f 0 (no friction) and F PZT = 0:
32