Professional Documents
Culture Documents
Welcome back to MCEN30020: Systems Modelling and Analysis (SMA) with Dr Airlie Chapman
Admin
• Subject experience survey (SES) is now out - closes Sunday 28th October
Today
• More practice problems
Fluid Problem
Two tanks are placed in series with an incompressible uid en- Let A = 4, R = 3 and g ≈ 10.
tering the rst tank with ow rate of qin . The conguration is
shown on the right. The mass ow rate through a valve is
1
ṁ0 = ρgh.
R
Method:
1. Find the dynamic equations for the two tank dynamics.
2. For an input u0 1 and M sin (ωt + φ), characterize the h1,ss (t) = h10 1 + M1 sin (ωt + φ1 ) and h2,ss (t) =
h20 1 + M2 sin (ωt + φ2 )
3. Formulate h1,ss (t) with the characteristic information provided and use it to nd u0 , M and ω .
4. Find the minimum at steady state h20 − M2 .
Answer:
Modelling Method 1 (long version):
Tank 1
By conservation of mass and using the valve equation,
ṁ = ṁi − ṁ0
d 1
(ρAh1 ) = ρqin − ρgh1
dt R
1 1
ḣ1 = qin − gh1
A R
1
with Laplace transform
1 1
sh1 (s) = qin − gh1 (s)
A AR
1 1
sh1 (s) + gh1 (s) = qin
AR A
g 1
s+ h1 (s) = qin
AR A
1
qin Rqin
h1 (s) = A g =
s + AR ARs + g
1
h1 (s) A
R
G1 (s) = = g =
qin (s) s+ AR
ARs + g
Tank 2
By conservation of mass and using the valve equation,
ṁ = ṁi − ṁ0
d 1 1
(ρAh2 ) = ρgh1 − ρgh2
dt R R
g
ḣ2 = (h1 − h2 )
AR
1
ṁo = ρq1→2 = ρgh1
R
Tank 2
1
q1→2 (s) = gh1 (s)
R
2
h2 (s) R
=
q1→2 ARs + g
R g
h2 (s) = h1 (s)
ARs + g R
g R
= qin
ARs + g ARs + g
Rg
= 2 qin
(ARs + g)
h2 (s) Rg
G2 (s) = = 2
qin (s) (ARs + g)
For A = 4 and R = 3.
3
G1 (s) =
12s + 10
30
G2 (s) = 2
(12s + 10)
Properties of h1 (t)
As minimum is at T = 10 s separation then ω = 2π/T ≈ 0.63 and the magnitude of the sinusoidal
oscillation is h1a = 2 m with an oset of h10 =3 m.
For qin = u0 1 + M sin (ωt) (which should be positive as a negative ow rate in this problem would be
gravity defying) then h1 (t) would oscillate about a nonzero value. A sketch of the relationship between
qin (t), h1 (t) and h2 (t) is shown below.
3
For a step input u0 then
3u0
h1 (s) =
s (12s + 10)
30
h2 (s) = 2
s (12s + 10)
3
h10 = lim h1 (t) = lim sh1 (s) = u0
t→∞ s→0 10
30
h20 = lim h1 (t) = lim sh1 (s) = u0
t→∞ s→0 100
Hence,
h10
u0 = 10 = 10.
3
and
30 30
h20 = u0 = 10 = 3,
100 100
i.e., the oset of the sinusoid for h2 (t) at steady state is 3 m.
Sinusoid M sin (ωt) for ω = 0.63
For G1 (jω) = 3
12jω+10
3
|G1 (jω)| = √
122 ω 2
+ 102
3
|G1 (j · 0.63)| = √ ≈ 0.24
12 × 0.632 + 102
2
For G2 (jω) = 30
(12jω+10)2
30
|G2 (jω)| =
122 ω 2
+ 102
3
|G2 (j · 0.63)| = 2 ≈ 0.19
12 × 0.632 + 102
with
4
so using (1) and h1a = 2 then
i.e., the magnitude of the sinusoid for h2 (t) at steady state is 1.6 m.
So the minimum is the oset minus the magnitude of the sinusoid
Nyquist Problem
Method:
1. Find k and a by examining the critical nyquist crossing points, ω = 0, ∞, and ∠G (jω) =
0, −90, −180, −270, . . .
2. Break the problem into u(t) = u1 (t) + u2 (t) and calculate yss (t) = y1,ss (t) + y2,ss (t)
Answer: (a)
For s = 0 then G1 (0) = k
a = 5. For s → ∞ then
d
k (s + 1) ds k (s + 1) k
2 = G(∞) = lim = lim d
=
s→∞ s + a 1
ds (s + 1)
s→∞
Magnitude:
k (jω + 1)
G(jω) =
jω + a
5
√
k ω2 + 1
|G (jω)| = √
ω 2 + a2
√
2 2
|G (j · 1)| = q 2 = 2.63
1 + 52
and
3 |G (j · 1)| = 7.88
For ω = 1, k = 2 and a = 25 .
Phase:
2
−1 + ∠G(j · 1) = −1 + atan2 (2, 2) − atan2 1,
5
2 1
= −1 + atan − atan 2
2 5
= −1.4
Hence,
Method:
1. Assign variables such as x and θ that are both necessary and sucient to describe an arbitrary
point of the object.
2. Draw a free-body diagram (FBD) of each component. Indicate all forces acting on each body
and their reference.
3. Apply Newton's law in translation and/or rotation to get equations of motion (EOM).
6
Answer:
Dene the location of mass m1 as (px1 , py2 ) and of mass m2 as (px2 , py2 ).
The free body diagram of m1 is
Geometry:
px1 = u + L sin θ1
py1 = −L cos θ1
px2 = u + b + L sin θ2
py2 = −L cos θ2
I1G = I2G = 0
Pendulum:
d2
(2)
X
Fx = m(px )
dt2
d2
(3)
X
Fy = m 2 (py )
dt
(4)
X
G
Mz = I α = I G θ̈
G
From (2)
d2
m1 px = Rx − k (px1 − px2 )
dt2 1
d2
m1 (u + L sin θ1 ) = Rx − k (u + L sin θ1 − (u + b + L sin θ2 ))
dt2
m1 ü + −Lθ̇12 sin θ1 + Lθ̈1 cos θ1 = Rx − k (L sin θ1 − L sin θ2 − b)
Rx = m1 u̇ − m1 Lθ̇12 sin θ1 + m1 Lθ̈1 cos θ1 + k (L sin θ1 − L sin θ2 − b)
and
Rx cos θ1 = m1 u̇ cos θ1 − m1 Lθ̇12 sin θ1 cos θ1 + m1 Lθ̈1 cos2 θ1 + k (L sin θ1 − L sin θ2 − b) cos θ1 (5)
7
From (3)
d2
m1 py = Ry − m1 g
dt2 1
d2
m1 (−L cos θ1 ) = Ry − m1 g
dt2
m1 Lθ̈1 sin θ1 + Lθ̇12 cos θ1 = Ry − m1 g
Ry = m1 Lθ̈1 sin θ1 + m1 Lθ̇12 cos θ1 + m1 g
and
Ry sin θ1 = m1 Lθ̈1 sin2 θ1 + m1 Lθ̇12 cos θ1 sin θ1 + m1 g sin θ1 (6)
From (4)
0 = Rx cos θ1 + Ry sin θ1
0 = m1 u̇ cos θ1 + m1 Lθ̈1 cos2 θ1 − m1 Lθ̇12 sin θ1 cos θ1 + k (L sin θ1 − L sin θ2 − b) cos θ1
+ m1 Lθ̈1 sin2 θ1 + m1 Lθ̇12 cos θ1 sin θ1 + m1 g sin θ1
0 = m1 u̇ cos θ1 + m1 Lθ̈1 + k (L sin θ1 − L sin θ2 − b) cos θ1 + m1 g sin θ1
Small angle:
−m1 u̇ = m1 Lθ̈1 + k (Lθ1 − Lθ2 − b) + m1 gθ1
Similarly for mass m2 then
Nyquist-Bode Problem
Only one of the Bode diagrams on
the right (a,b,c, or d) matches the
Nyquist diagram on the left. Which
one? Explain your answer.
Method:
1. Examine the critical nyquist crossing points, ω = 0, ∞, and ∠G (jω) = 0, −90, −180, −270, . . .
2. Examine the distinctive characteristics of the bode plot, G(j · 0), G (j · ∞) and break points.
8
Answer: (a)
At −180◦ , the magnitude of the bode plot is a little above 10 = 20 log10 10dB = 20dB. The only nyquist
plot with magnitude and phase plot matching the requirement is the blue line.
So (a).
Method:
2. For continuous check the poles are in the LHP and for discrete check the poles are inside the
unit circle
Answer:
System A:
1
Kc s(s−1)
G(s) = 1
1 + Kc s(s−1)
Kc
=
s2 − s + Kc
z
Kd z−1
G(z) = z
1 + Kd z−1
Kd z
=
(Kd + 1) z − 1
9
or
2
1
<1
Kd + 1
2
1 < (Kd + 1)
0 < Kd2 + 2Kd + 1 − 1
0 < Kd (Kd + 2)
10