Chapter 1 - Modelling in Frequency Domain 2 PDF
Chapter 1 - Modelling in Frequency Domain 2 PDF
Control Theory
where the symbol L is used to denote that we want to apply Laplace transform to its
argument f (t)
Z∞
L [f (t)] u(t) = F (s) = f (t) e−st dt (2)
0−
Item Item
f (t) F (s) f (t) F (s)
No No
1. δ (t) 1 1
5. e−at u(t)
1 s+a
2. u(t) ω
s 6. ω t) u(t)
sin (
1
s + ω2
2
3. t u(t) s
s2 7. cos ( ω t) u(t)
s2 + ω 2
n!
4. tn u(t)
sn+1
Item
f (t) F (s)
No
1
1. t e−at u(t)
(s + a)2
s + a)
(
2. A e−at cos (ω t) u(t) A 2 2
(s + a) + ω
ω
3. B e−at sin (ω t) u(t) B 2 2
(s + a) + ω
▶ In a more general (less useful for our analysis), the differentiation property is
n
d f n−1
L n
= s F (s) − s f (0− ) − sn−2 f ′ (0− ) − · · · − f (n−1) (0− ) (8)
d tn
▶ The integration theorem shows that integration in the time domain is replaced with
dividing over s. This also helps us convert equations containing integrals into algebraic
equations
▶ This means that when f (t) is multiplied by e−at , then we simply calculate F (s) for
f (t) (usually using the tables), then replace every s with s + a
▶ This means that when every t is replaced with t − a, then we simply calculate F (s)
for f (t) (usually using the tables), then multiply the result by e−as
1
F (s) =
( s + a)n
thus, we get
1 1
e−a t tn−1 u(t)⇔
( n − 1)! s + a)n
(
ω t) u(t)
sinh (
syms a omega t s
=
f_t = exp( a*t)*cos(omega*t);
F_s = laplace(f_t, t, s);
pretty(F_s)
%% (ogata2010, 863)
syms a omega t s n
%% (ogata2010, 863)
f_t = sinh(omega*t);
F_s = laplace(f_t, t, s);
pretty(F_s)
has
d distinct roots (i.e., all factors are raised only to unity)
d real roots (i.e., solutions of (s + 1) = 0 is −1 and solution of (s + 2) = 0 is −2)
▶ We thus write the partial-fraction expansion as sum of terms with each factor
forming a denominator and constants at the numerator called residues
2 K1 K2
F (s) = = +
( s + 1)(s + 2) s + 1)
( s + 2)
(
by subtituting s = −1 we get
2 K1 K2
F (s) × 0 = = + ×0
−1 + 2)
( 1 −1 + 2)
(
K1 = 2
where D̂(s) is the denominator D(s) with the complex factor (s + pm ) removed
s + 18
F (s) =
s (s + 2)(s + 3)
has repeated roots since the factor (s + 2)2 is raised to an integer greater than 1
▶ We thus write the expansion as normal except that each set of repeated roots generate
additional terms of reduced multiplicity
2 K1 K2 K3
F (s) = 2
= +
2
+
s + 1)(s
( + 2) (s + 1) s
( + 2) (s + 2)
2 K1 2
= (s + 2) + K2 + K3 (s + 2)
(s + 1) (s + 1)
2 K1
F (s)(s + 2)2 = =
2
(s + 2) + K2 + K3 (s + 2)
( s + 1) s + 1)
(
K1 K2 Kr
= + + ··· +
(s + p1 )
r (s + p1 )
r− 1 (s + p1 )
Kr+1 Kn
+ + ··· +
(s + p2 ) (s + pn )
Kr+1 r Kn r
+ (s + p1 ) + · · · + (s + p1 )
(s + p2 ) (s + pn )
s+8
F (s) = 2(
s s + 2)
simplifying
s+8 K3 2
= = K1 + K2 s + s
s + 2)
( s + 2)
(
s+8 K3 2
F̂ (s) = = K1 + K2 s + s
(s + 2) (s + 2)
K1 s + K2 K3
= +
2
s + 2s + 5 s
K3 = 0.6, while K1 and K2 are calculated by multiplying both sides by the
dominator of F (s) (i.e., s (s2 + 2s + 5))
3 K1 s + K2 K3
s (s2 + 2s + 5) = 2 s (s2 + 2s + 5) + s (s2 + 2s + 5)
s (s2 + 2s + 5) s + 2s + 5 s
expanding F (s)
K1 s + K2 K3 K4
= + +
( s 2
+ 11) + 4
2 s + 10 s + 15
to calculate K2 , sbustitute s = 0
2 2
3 × 15 = K2 × 10 × 15 + (−1.235) × 15 11 + 4
2 2
+6.75 × 10 11 + 4
K2 = −44.43
(−1.235) 6.75
+ +
s + 10 s + 15
(s + 11) 5.235 4 1.235 6.75
= −4.515 + − +
2
(s + 11) + 4
2 4
2
(s + 11) + 4
2 s + 10 s + 15
1.235 6.75
− +
s + 10 s + 15
from Laplace transform tables
(s + a)
A e−at cos (ω t) u(t)⇔A
s + a)2 + ω 2
(
ω
B e−at sin (ω t) u(t)⇔B 2 2
(s + a) + ω
thus f (t)
f (t) = − 4.515e−11t cos (4t) u(t) + 1.309e−11t sin (4t) u(t)
− 1.235e−10t u(t) + 6.75e−15t u(t)
where
c(t) the output
r(t) the input
ai , bi constants which depend on the system
if all initial conditions are zero, then Eq. (18) becomes purely algebraic
( an sn + an−1 sn−1 + · · · + a0 )C (s) = (bm sm + bm−1 sm−1 + · · · + b0 )R(s) (19)
▶ The ratio G(s) in Eq. (20) is known as the transfer function and we evaluate it at zero
initial conditions
▶ Given certain input R(s), we calculate the output C (s)
d3 c d2 c dc d2 r dr
+ 3 + 7 + 5 c= + 4 + 3 r
d t3 d t2 dt d t2 dt
▶ Calculate the transfer function assuming the input is r and the output is c
▶ Assuming the input to be r(t) = t2 u(t), what is the output c(t) in time domain?
2 s2 + 4 s + 3
C (s) = 3 (
s s + 1) [(s + 1)2 + 22 ]
▶ Expanding C (s)
K1 K2 K3 K4 K5 s + K6
C (s) = + + + +
s3 s2 s s + 1 (s + 1)2 + 22
multiply both sides by s3
s2 + 4s + 3 K4 K5 s + K6
s3 C (s) = 2 2 2
= K1 + K2 s + K3 s +
2
s+ 2 2
s
(s + 1) [(s + 1) + 2 ] s+1 (s + 1) + 2
2 2
= 1.2(s + 1) (s + 1) + 2
2 2
+(−0.08)s (s + 1) (s + 1) + 2
2 2 2
+(−0.208)s (s + 1) (s + 1) + 2
+[ K5 s + K6 ] s3 (s + 1)
substitute s = 0
0 = (60 K5 − 12.48)s2 + (24K5 + 24K6 − 16.9)s + 6K6 − 2.976
0 = 6 K6 − 2.976
K6 = 0.496
substitute s = 0
0 = 24 K5 + 24K6 + s (120K5 − 24.96) − 16.9
substituting K6 = 0.496
0 = 24 K5 − 4.992
K5 = 0.208
(−1) 0.496
+0.208 +
2
(s + 1) + 2
2 2
(s + 1) + 2
2
dq (t)
current is is defined as i(t) = . Thus
dt
d2 qC (t) dqC (t) 1
L + R + qC (t) = v (t)
d t2 dt C
+
-
+
-
−1 0
I2 (s) =
s + 1)
(2 −1
2
−1 3s + + 1
s
s
= Vi (s)
3 2
6s + 5s + 4s + 2
Vo (s)
▶ The transfer function G(s) = is
Vi (s)
thus
Vo (s) 3 s2
G(s) = =
Vi (s) s3 + 5s2 + 4s + 2
6
eq2 = 1*(I_2 =
I_1) + 3*s*I_2 + (2/s)*I_2 == 0;
eq2 = collect(eq2, {'I_1', 'I_2'});
pretty(eq2)
V_o = I_2*3*s;
V_o_V_i = V_o/V_i;
pretty(V_o_V_i)
+
-
+
-
s
=
s2 + 1
+
-
+
-
=
eq2 = (s/(s^2 + 1))*I_1 + (s/(s^2 + 1) + 1 + 1/s)*I_2 = (1)*I_3 == 0;
eq2 = collect(eq2, {'I_1', 'I_2', 'I_3'});
pretty(eq2)
=
eq3 = (s)*I_1 =
(1)*I_2 + (2*s + 1)*I_3 == 0;
eq3 = collect(eq3, {'I_1', 'I_2', 'I_3'});
pretty(eq3)
V_o = I_2*(1/s);
V_o_V_i = V_o/V_i;
pretty(V_o_V_i)
=
eq1 = s*X_1 =
s*X_1 =
s^2*X_1 =
1*X_1 = s*X_1 ...
+s*X_2 + s*X_2 + 1*X_2 + s*X_2 == F_s; =
=
eq1 = 1*eq1;
eq1 = collect(eq1, {'X_1', 'X_2'});
pretty(eq1)
=
eq2 = s*X_2 =
s*X_2 =
s^2*X_2 =
1*X_2 = s*X_2 = s*X_2 ...
+s*X_1 + s*X_1 + 1*X_1 + s*X_1 == 0;
=
eq2 = 1*eq2;
eq2 = collect(eq2, {'X_1', 'X_2'});
pretty(eq2)
X_2_F = X_2/F_s;
− [2s] 4s + 4s + 6 F (s)
− [0] − [6] 0
X3 (s) = 2
4s + 2s + 6
2 − [2s] − [0]
− [2s] 4s + 4s + 6
2 − [6]
− [0] − [6] 4s + 2s + 6
=
eq2 = 2*s*X_1 + (4*s^2 + 2*s + 2*s + 6)*X_2 = 6*X_3 == F_s;
eq2 = collect(eq2, {'X_1', 'X_2', 'X_3'});
pretty(eq2)
eq3 = 0*X_1 =
6*X_2 + (4*s^2 + 2*s + 6)*X_3 == 0;
eq3 = collect(eq3, {'X_1', 'X_2', 'X_3'});
pretty(eq3)
=
num = det([(4*s^2 + 2*s + 6), ( 2*s), 0; ...
=
( 2*s), (4*s^2 + 4*s + 6), F_s; ...
= = =
( 0), ( 6), ( 0)]);
=
den = det([(4*s^2 + 2*s + 6), ( 2*s), ( 0); ... =
= =
( 2*s), (4*s^2 + 4*s + 6), ( 6); ...
= =
( 0), ( 6), (4*s^2 + 2*s + 6)]);
X_3 = num/den;
X_3_F = X_3/F_s;
pretty(X_3_F)
rearranging
2
+ s θ1 (s) + sθ1 (s) + 1 × θ1 (s)
rearranging
2
+ 0 s θ2 (s) + 2sθ2 (s) + 2 × θ2 (s)
− sθ1 (s) − 1 × θ1 (s) = 0
eq2 = =
(s + 1)*theta_1 + (s + 1)*theta_2 == 0;
eq2 = collect(eq2, {'theta_1', 'theta_2'});
pretty(eq2)
theta_2 = num/den;
theta_2 = simplify(theta_2);
pretty(theta_2)
theta_2_T = theta_2/T_s;
pretty(theta_2_T)
T2 θ1 N2
= = (24)
T1 θ2 N1
Input Output
Transfer Functions of Angular Displace- Gear 1 Gear 2
(Drive Gear) (Driven Gear)
ment and Torque for Gear Trains
N2
according Eq. (24), T2 (s) = T1 (s)
N1
N2
s2 J + s D + K θ2 (s) =
T1 (s)
N1
N1
according Eq. (24), θ2 (s) = θ1 (s)
N2
N1 N2
s2 J + s D + K θ1 (s) = T1 (s)
N2 N1
− [0] − [3] 0
θ1 (s) = 2
s + 2s − [2s] − [0]
2
− [2s] 0 s + 2s + 3
2− [3]
− [0] − [3] 0s + 3 + s
18
= T (s) 2 +9
s (2 s s + 6)
T (s)
thus, the transfer function G(s) = becomes
θL (s)
θL (s) 90
=
T (s) s (2
2 +9
s s + 6)
=
eq2 = (2*s)*theta_3 + (0*s^2 + 2*s + 3)*theta_2 =
(3)*theta_1 == 0;
eq2 = collect(eq2, {'theta_1', 'theta_2', 'theta_3'});
pretty(eq2)
Z_M_new = 0.04*s*(N_3/N_4)^2;
eq3 = = (0)*theta_3 =
(3)*theta_2 + (0*s^2 + 3 + Z_M_new)*theta_1 == 0;
eq3 = collect(eq3, {'theta_1', 'theta_2', 'theta_3'});
pretty(eq3)
=
num = det([(s^2 + 2*s), (2*s), 3*T_s; ...
=(2*s), (2*s + 3), 0; ...
= (0), =(3), 0]);
=
den = det([(s^2 + 2*s), (2*s), (0); ... =
Al-Motasem Aldaoudeyeh, PhD Slide 189 of 242 BasmahWantsMeHappy
=(3), (2*s + 3), =(2*s); ...
=(0), =(3), (s + 3)]);
theta_1 = num/den;
theta_1 = simplify(theta_1);
pretty(theta_1)
theta_L = theta_1*(N_3/N_4);
pretty(theta_L)
theta_L_T = theta_L/T_s;
pretty(theta_L_T)
T (s)
thus, the transfer function G(s) = becomes
θ2 (s)
θ2 (s) 1
=
T (s) 130
2 + 400
s s + 55
{ (a) schematic
R
{
ot
or
Fi ield
xe
F
Fi ield
xe
F
d
stationary electromagnet called fixed
field
▶ The rotating circuit is called the
armature, in which a current denoted
ia (t) flows
R
ot
or
Al-Motasem Aldaoudeyeh, PhD Slide 203 of 242 BasmahWantsMeHappy
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
▶ The current flowing in the armature
produces a torque given as
Fi ield
xe
F
d
Tm (t) = Kt ia (t) (26)
where Kt is a constant which depends
on the construction of the machine.
Taking the Laplace transform of Eq. (26)
Tm (s) = Kt Ia (s) (27)
R
rewriting Eq. (27)
ot
or
1
Ia (s) = Tm (s) (28)
Kt
Fi ield
xe
F
d
electromotive force (back emf) (vb (t)) is
given as
dθm (t)
vb (t) = Kb (29)
dt
where Kb is a constant which depends
on the construction of the machine.
R
ot
Taking the Laplace transform of Eq. (29)
or
Vb (s) = Kb s θm (s) (30)
Fi ield
xe
F
d
R
ot
or
Al-Motasem Aldaoudeyeh, PhD Slide 206 of 242 BasmahWantsMeHappy
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
▶ The relationship between E (s) and Ia (s) is given as
Ra Ia (s) + s La Ia (s) + Vb (s) = Ea (s) (31)
1
substituting Eq. (28) (Ia (s) = Tm (s)) and Eq. (30) (Vb (s) = Kb s θm (s)) in Eq. (31)
Kt
yields
Ra + s La )Tm (s)
(
+ Kb s θm (s) = Ea (s) (32)
Kt
Fi ield
domain
xe
F
d
θm
G(s) =
Ea (s)
Kt
a Jm
R
(36)
R
=
ot
or
1 Kt Kb
s s+ Dm +
Jm Ra
Fi ield
xe
F
d
θm (s) K
G(s) = = (37)
Ea (s) s [s + α ]
Kt
K = (38)
Ra Jm
R
1 Kt Kb
ot
or
α= Dm + (39)
Jm Ra
Fi ield
xe
F
d
Rotor
{
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
▶ It is frequent that we connect the motor to load by gear train
Fi ield
xe
F
d
Rotor
{
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
2 )
N1 The total inertia
Jm = Ja + JL (40)
N2 as seen by the rotor
Fi ield
xe
F
d
Rotor
{
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
2 )
N1 The total friction
Dm = Da + DL (41)
N2 as seen by the rotor
Fi ield
xe
F
d
Rotor
{
Derivation of Transfer Function of Armature-Controlled DC Motor [Nis11; pp. 79–84]
▶ In Eqs. (38) and (39), we need to determine the
Fi ield
constants Kt and Kb
xe
F
d
θm K
G(s) = =
Ea (s) s [s + α ]
Kt
K =
Ra Jm
R
ot
or
1 Kt Kb
α= Dm +
Jm Ra
Kt Kb Kt
Tm = − ωm + ea (42)
Ra Ra
Kt Tstall
= (45)
Ra ea
ea
Kb = (46)
ωno−load
Fi ield
xe
F
d
Rotor
{
Al-Motasem Aldaoudeyeh, PhD Slide 222 of 242 BasmahWantsMeHappy
Transfer Function of Armature-Controlled DC Motor [Nis11; p. 84]
Tstall and ωno−load
▶ Tstall may be obtained by substituting ωm = 0 in the torque-speed curve
Tstall = −8 ωm + 200|ωm =0 = 200 N·m
ωno−load may be obtained by substituting Tm = 0 in the torque-speed curve and
solving for ωm
0 = −8 ωno−load + 200
ωno−load = 25 rad/s
200
= = 2
100
from Eq. (46)
ea
Kb =
ωno−load
substituting ea = 100 and ωno−load = 25
100
= = 4
25
Fi ield
xe
F
d
Rotor
{
Al-Motasem Aldaoudeyeh, PhD Slide 225 of 242 BasmahWantsMeHappy
Transfer Function of Armature-Controlled DC Motor [Nis11; p. 84]
The total inertia and friction as seen by the motor (Jm and Dm )
▶ By using an expression similar to Eq. (40)
2 2
N3 N1
Jm = Ja + JL
N4 N2
2 2
25 20
= 1 + 400 ×
100 100
1
= 1 + 400 × = 2
400
1
= 5 + 800 × = 7
400
the constant α
1 Kt
α= Dm + Kb
Jm Ra
1 15
= (7 + 2 × 4) =
2 2
Fi ield
xe
F
d
Rotor
{
Al-Motasem Aldaoudeyeh, PhD Slide 231 of 242 BasmahWantsMeHappy
Transfer Function of Armature-Controlled DC Motor [Nis11; p. 84]
The transfer function from ea (t) to θL (t)
▶ θm (s) is
1
θm (s) = Ea (s)
15
s s+
2
the conversion of angles through gear trains is done using the relationship
Number of Teeth of Gear
Fi ield
xe
F
Fi ield
xe
F
d
Rotor
{
Al-Motasem Aldaoudeyeh, PhD Slide 237 of 242 BasmahWantsMeHappy
Transfer Function of Armature-Controlled DC Motor [Nis11; p. 84]
The transfer function from ea (t) to TL (t)
▶ Tm (s) is
1
s2 + 7 s
Tm (s) = Ea (s) × 2
15
s s+
2
the conversion of torques through gear trains is done using the relationship
Number of Teeth of Gear
= 20 Tm (s)
substituting Tm (s)
2
2s + 7s
= 20 Ea (s)
15
s s+
2