Professional Documents
Culture Documents
Fall 2016
Remarks:
1 If the highest power of s in the denominator of the transfer function is equal to n, the
s +1
system is called an nth -order system. (e.g. G (s) = 2 is a second-order system)
s + 2s − 1
2 When order of the denominator polynomial is greater than the numerator polynomial the
transfer function is said to be “proper”. Otherwise “improper”.
3 “Improper” transfer function could not exist physically.
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 4 / 43
Remarks on The System Transfer Function:
Transfer function of Linear Systems:
s +3
G (s) =
s(s + 2)
(s + 3)2
G (s) =
s(s 2 + 10)
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 6 / 43
Table of Contents
Non-linear system
A system is nonlinear if the principle of superposition and homogeneous are not applied.
In practice, many electromechanical systems, hydraulic systems, pneumatic systems, and
so on, involve nonlinear relationships among the variables.
The non-linear systems are assumed to behave as linear system for a limited operating
range.
Example of nonlinear system is the damping force. It is linear at low velocity operation
and non-linear at high velocity operation.
y = f (u) (1)
To obtain a linear model we assume that the variables deviate slightly from some operating
condition corresponds to ū and ȳ . The equation (1) can be expanded by using Taylor
expansion:
y = f (u)
1¨
y = f (ū) + f˙ (ū)(u − ū) +
f (ū)(u − ū)2 + . . .
2!
If the deviation (u − ū) is small, we can neglect the high derivative terms:
y = f (u1 , u2 )
∂f (u¯1 ) ∂f (u¯2 )
y = f (u¯1 , u¯2 ) + (u1 − u¯1 ) + (u2 − u¯2 )
∂u1 ∂u2
F = k1 y = k2 (x − y )
F = k1 x + k2 x = keq x 1 k1 k2
keq = =
1 1 k2 + k2
+
keq = k1 + k2 k1 k2
m is the mass.
a is the acceleration.
F is the force.
d 2y dy du
m = −b( − ) − k(y − u)
dt 2 dt dt
Taking the Laplace transform of this last
equation, assuming zero initial condition:
Y (s) bs + k
G (s) = =
U(s) ms 2 + bs + k
ẋ = Ax + Bu
y = C x + Du
d 2y dy du
m 2
= −b( − ) − k(y − u)
dt dt dt
mÿ = −b ẏ − ky + b u̇ + ku
ẋ = Ax + Bu
y = C x + Du
b k b k b
ÿ = − ẏ − y + u̇ + u ẋ1 = ẏ = x2 + u
m m m m m
b
3 Define two states: ẋ2 = ÿ − u̇
m
x1 = y b k b k b
ẋ2 = − ẏ − y + u̇ + u− u̇
m m m
m m
b b b k k
x2 = ẏ − u Why ? ẋ2 = −
m
[x2 + u] − [x1 ] + u
m m m
m
k b b k
ẋ2 = − x1 − x2 + (( )2 + )u
m m m m
(5) Finally,
(2) Simplifying,
Inverted Pendulum
An inverted pendulum mounted on a motor-driven cart. The inverted pendulum is naturally
unstable in that it may fall over any time in any direction unless a suitable control force is
applied.
I θ̈ = V ∗ L ∗ sinθ − H ∗ L ∗ cosθ
I : Mass moment of inertia. (kg .m2 )
θ: Rotational angle.
V : Vertical reaction force.
H: Horizontal reaction force.
L: Half length of the rod.
Free-body diagram
d2
m (x + L ∗ sinθ) = H
dt 2
The vertical motion of rod center of
gravity:
X
ma = F
d2
m (L ∗ cosθ) = V − mg Free-body diagram
dt 2
d 2x
M =u−H
dt 2
Since we need to keep the pendulum
˙ are
vertical, we can assume θ and theta
small quantities. So,
I sinθ ≈ θ.
I cosθ = 1.
I θθ̇2 = 0. Free-body diagram
I θ̈ = V ∗ L ∗ sinθ − H ∗ L ∗ cosθ
I θ̈ = V ∗ L ∗ θ − H ∗ L (1)
2
d2
m (x + L ∗ sinθ) = H
dt 2
m(ẍ + Lθ̈) = H (2)
3
d2
m (L ∗ cosθ) = V − mg
dt 2 Free-body diagram
0 = V − mg (3)
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 25 / 43
Mathematical Modeling of Mechanical Systems:
Example 3:
H = u − M ẍ
(M + m)ẍ + m ∗ L ∗ θ̈ = u
RLC circuit
Eo (s)
We need to find the transfer function G (s) = of the RLC network.
Ei (s)
Applying the Kirchhoff’s voltage law:
X
V =0
Z
di 1
ei (t) − L − R.i − i dt = 0
dt C
Z
1
RLC circuit i dt = eo
C
Eo (s) 1
G (s) = = 2
Ei (s) LCs + RCs + 1
Cascaded RC circuit
Eo (s)
We need to find the transfer function G (s) = of the cascaded RC network.
Ei (s)
Applying the Kirchhoff’s voltage law:
X
V =0
RLC circuit
RLC circuit
Series/Parallel RLC
Eo (s)
We need to find the transfer function G (s) = of the cascaded RC network.
Ei (s)
Series/Parallel RLC
We need to find the equivalent impedance Z
for the connected components.
RLC circuit
ZL (s) = Ls 1
Zc (s) =
ZR (s) = R Cs
Series/Parallel Impedance
Series
Parallel
1 1 1 1
= + +
ZT Z1 Z2 Z3
ZT = Z1 + Z2 + Z3
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 36 / 43
Mathematical Modeling of Electrical Systems:
Example 3:
X
V =0
1
Ei (s) = I (s)ZT + I (s) (1)
Cs
1
Eo (s) = I (s) (2)
Cs
Eo (s)
Divide (2) by (1) to find G (s) =
Ei (s)
RLC circuit
di
DC Motor V − Ke θ̇ − L − Ri = 0
dt
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 40 / 43
Mathematical Modeling of Electromechanical Systems:
Mathematical Modeling DC Motor:
J θ̈ = Tmotor − b θ̇
J θ̈ = Kt i − b θ̇
DC Motor
in SI units, the Kt and constants are
equal, that is, Kt = Ke = K .
di
V − K θ̇ − L − Ri = 0
dt
J θ̈ = K ∗ i − b θ̇
Js 2 θ(s) = KI (s) − bθ(s) (2)
Eliminate I (s) chose sθ(s) = W (s) as the
DC Motor rotational speed:
W (s) K
G (s) = =
V (s) (Js + b)(Ls + R) + K 2
Dr. Haitham El-Hussieny SPC318: System Modeling and Linear Systems 42 / 43
End of Lecture
Best Wishes
haitham.elhussieny@gmail.com