



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















Antenna Control: State-Space Representation
For the power amplifier,
Ea (s) V (^) p(s) =^
150 s+150. Taking the inverse Laplace transform, ea
. +150ea =
150v (^) p. Thus, the state equation is
e (^) a
For the motor and load, define the state variables as x 1 = θm and x 2 = θ
. m. Therefore, x
. 1 = x^2 (1) Using the transfer function of the motor, cross multiplying, taking the inverse Laplace transform, and using the definitions for the state variables,
x
. 2 = -
1 J (^) m (D^ m+
K (^) t K (^) a Ra ) x^2 +^
K (^) t Ra J (^) m ea^ (2)
Using the gear ratio, the output equation is y = 0.2x 1 (3)
Also, Jm = Ja +5(^15 ) 2 = 0.05+0.2 = 0.25, D (^) m = D (^) a +3(^15 ) 2 = 0.01+0.12 = 0.13,
K (^) t Ra J (^) m =^
1 (5)(0.25)
= 0.8, and (^) J^1 m (D (^) m+ K (^) t K (^) a Ra ) = 1.32. Using Eqs. (1), (2), and (3) along with the previous values, the
state and output equations are,
x^.^ = 0 1 0 -1. x + 0
ea ; y = 0.2 0 x
48 Chapter 3: Modeling in the Time Domain
Aquifer: State-Space Representation
C 1
dh (^1) dt = q^ i1-q^ o1+q^ 2-q^ 1+q^21 = q^ i1-0+G^ 2(h^ 2-h^ 1)-G^ 1h^ 1+G^ 21(H^ 1-h^ 1) =
-(G (^) 2+G (^) 1+G (^) 21)h (^) 1+G (^) 2h (^) 2+q (^) i1+G (^) 21H (^1) C 2 dh (^2) dt = q^ i2-q^ 02+q^ 3-q^ 2+q^32 = q^ i2-q^ o2+G^ 3(h^ 3-h^ 2)-G^ 2(h^ 2-h^ 1)+0 = G^ 2h^ 1-[G^ 2+G^ 3]h^ 2+G^ 3h^ 3+q^ i2-q^ o C 3
dh (^3) dt = q^ i3-q^ o3+q^ 4-q^ 3+q^43 = q^ i3-q^ o3+0-G^ 3(h^ 3-h^ 2)+0 = G^ 3h^ 2-^ G^ 3h^ 3+q^ i3-q^ o Dividing each equation by Ci and defining the state vector as x = [h 1 h 2 h (^) 3]T
x
x +
qi 1 + G 21 H 1 C 1 qi 2 − qo 2 C 2 qi 3 − qo 3 C 3
u ( t )
y =
x
where u(t) = unit step function.
1. (1) Can model systems other than linear, constant coefficients; (2) Used for digital simulation 2. Yields qualitative insight 3. That smallest set of variables that completely describe the system 4. The value of the state variables 5. The vector whose components are the state variables 6. The n-dimensional space whose bases are the state variables 7. State equations, an output equation, and an initial state vector (initial conditions) 8. Eight 9. Forms linear combinations of the state variables and the input to form the desired output 10. No variable in the set can be written as a linear sum of the other variables in the set. 11. (1) They must be linearly independent; (2) The number of state variables must agree with the order of the differential equation describing the system; (3) The degree of difficulty in obtaining the state equations for a given set of state variables. 12. The variables that are being differentiated in each of the linearly independent energy storage elements
50 Chapter 3: Modeling in the Time Domain
i 1 =
i 2 +
i 4 −
vo +
vi
Thus, v 1 = vi − i 1 = −
i 2 −
i 4 +
vo +
vi
Also, i 3 = i 1 − i 2 = − 1 3
i 2 + 1 3
i 4 − 1 3
vo + 1 3
vi
and
i 5 = i 3 − i 4 = −
i 2 −
i 4 −
vo +
vi Finally,
v 2 = i 5 + vo = −
i 2 −
i 4 +
vo +
vi
Using v 1 , v 2 , and i 5 , the state equation is
x
x +
vi
y = (^) [ (^0 0 1) ] x 2. Add branch currents and node voltages to the schematic and obtain,
Write the differential equation for each energy storage element.
Solutions to Problems 51
dv 1 dt
= i 2
di 3 dt
= v (^) L
Therefore the state vector is x =
v 1 i 3
Now obtain v (^) L and i (^) 2 , in terms of the state variables, v (^) L = v 1 − v 2 = v 1 − iR = v 1 − ( i 3 + 4 v 1 ) = − 3 v 1 − i 3
i 2 = i 1 − i 3 = ( vi − v 1 ) − i 3 = − v 1 − i 3 + vi
Also, the output is y = iR = 4 v (^) 1 + i 3
Hence, x
⎥ x +
⎥ vi
y = (^) [ (^4 1) ] x 3. Let C 1 be the grounded capacitor and C 2 be the other. Now, writing the equations for the energy storage components yields, di (^) L dt
= v (^) i − vC 1 dv (^) C 1 dt
= i 1 − i 2 dv (^) C 2 dt
= i 2 − i 3
(1)
Thus the state vector is x =
i (^) L vC 1 vC 2
. Now, find the three loop currents in terms of the state variables
and the input. Writing KVL around Loop 2 yields vC (^) 1 = vC 2 + i 2 i 2
.Or, = vC 1 − vC
3
2 Writing KVL around the outer loop yields i + i 2 = vi Or, i 3 = vi − i 2 = vi − vC 1 + vC 2
Solutions to Problems 53
Substituting Eq. (1) in (2), (3) in (4), and (5) in (6), we obtain, respectively: dz 1 dt
= z 2 (7)
dz 3 dt
= z 4 (8) dz 5 dt
= z 6 (9)
Substituting Eqs. (1) through (6) into the equations of motion in the time domain and solving for the derivatives of the state variables and using Eqs. (7) through (9) yields the state equations:
dz 1 dt
= z 2
dz 2 dt
= − z 1 − 3 z 2 + z 3 + z 4 + z 6
dz 3 dt
= z 4 dz 4 dt
= z 1 + z 2 − z 3 − 2 z 4 + z 6 + f ( t ) dz 5 dt
= z 6
dz 6 dt
= z 2 + z 4 − 3 z 6 The output is x 3 = z 5. In vector-matrix form:
z
z +
f ( t )
y = (^) [ (^0 0 0 0 1 0) ] z 5. Writing the equations of motion,
54 Chapter 3: Modeling in the Time Domain
( s^2 + 2 s + 1) X 1 ( s ) − sX 2 ( s ) − ( s + 1) X 3 ( s ) = 0 − sX 1 ( s ) + ( s^2 + 2 s + 1) X 2 ( s ) − ( s + 1) X 3 ( s ) = 0 −( s + 1) X 1 ( s ) − ( s + 1) X 2 ( s ) + ( s^2 + 2 s + 2) X 3 ( s ) = F ( s )
Taking the inverse Laplace transform,
x 1
••
− x 1
••
− x 1
••
Simplifying,
x 1
•• = − 2 x 1
x 2
•• = x 1
x 3
•• = x 1
Defining the state variables,
z 1 = x 1 ; z 2 = x 1
Writing the state equations using the simplified equations above yields,
z 1
z 2
•• = − 2 z 2 − z 1 + z 4 + z 6 + z 5
z 3
z 4
•• = z 2 − 2 z 4 − z 3 + z 6 + z 5
z 5
z 6 =
•• = z 2 + z 1 + z 4 + z 3 − 2 z 6 − 2 z 5 + f ( t )
Converting to vector-matrix form,
56 Chapter 3: Modeling in the Time Domain
x 1
x 2
•• = −θ 2 +θ 3 + 1 10
T = − x 1 + x 3 + 1 10
x 3
x 4
,
In vector-matrix form,
x
x +
y = (^) [ (^10 0 0 0) ] x 7. Drawing the equivalent circuit,
Writing the equations of motion, 42 θ 2 ( s ) − 2 θ 3 ( s ) = 20 T ( s ) − 2 θ 2 ( s ) + (3 s + 2) θ 3 ( s ) − 3 s θ 4 ( s ) = 0 − 3 s θ 3 ( s ) + 5 s θ 4 ( s ) = 0
Taking the inverse Laplace transform,
42 θ 2 ( t ) − 2 θ 3 ( t ) = 20 T ( t ) (1)
− 2 θ 2 ( t ) + 3 θ 3
− 3 θ 3
Solutions to Problems 57
assuming zero initial conditions. From (1)
T ( t ) = 5 63
T ( t ) (5)
Substituting (4) and (5) into (2) yields the state equation (notice there is only one equation),
θ 4
θ 4 ( t ) +
T ( t ) The output equation is given by,
θ 4 ( t )
8.
Solving Eqs. (3.44) and (3.45) in the text for the transfer functions X 1 ( s ) F ( s )
and X 2 ( s ) F ( s )
:
X (^) 1 s
0 − K F M (^) 2 s^2 + K M (^) 1 s^2 + D s + K − K − K M (^) 2 s^2 + K
= and^ X (^) 2 s
M (^) 1 s^2 + D s + K 0 − K F M (^) 1 s^2 + D s + K − K − K M (^) 2 s^2 + K
=
Thus, X (^) 1 s F s
K M (^) 2 M (^) 1 s^4 + D M (^) 2 s^3 + K M (^) 2 s^2 + K M (^) 1 s^2 + D K s
=
and X (^) 2 s F s
M (^) 1 s^2 + D s + K M (^) 2 M (^) 1 s^4 + D M (^) 2 s^3 + K M (^) 2 s^2 + K M (^) 1 s^2 + D K s
=
Multiplying each of the above transfer functions by s to find velocity yields pole/zero cancellation at the origin and a resulting transfer function that is third order.
9. a.. Using the standard form derived in the textbook,
x
x +
r ( t )
c = [ 100 0 0 0 ] x
b. Using the standard form derived in the textbook,
Solutions to Problems 59
Transfer function: 30
s^5 + 8 s^4 + 9 s^3 + 6 s^2 + s + 30 A = 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 -30 -1 -6 -9 - B = 0 0 0 0 1 C = 30 0 0 0 0
11. a. Using the standard form derived in the textbook,
x
0 1 0 0 0 0 1 0 0 0 0 1 − 10 − 5 − 1 − 2
⎡
⎣
⎢ ⎢ ⎢
⎤
⎦
⎥ ⎥ ⎥
x +
0 0 0 1
⎡
⎣
⎢ ⎢ ⎢
⎤
⎦
⎥ ⎥ ⎥
r ( t )
c = (^) [ (^10 5 0 0 0) ] x
b. Using the standard form derived in the textbook,
x
x +
r ( t )
c = (^) [ (^3 7 12 2 1) ] x
12. Program: 'a' num=[5 10]; den=[1 2 1 5 10] G=tf(num,den) [Acc,Bcc,Ccc,Dcc]=tf2ss(num,den); Af=flipud(Acc); A=fliplr(Af) B=flipud(Bcc)
60 Chapter 3: Modeling in the Time Domain
C=fliplr(Ccc) 'b' num=[1 2 12 7 3]; den=[1 9 10 8 0 0] G=tf(num,den) [Acc,Bcc,Ccc,Dcc]=tf2ss(num,den); Af=flipud(Acc); A=fliplr(Af) B=flipud(Bcc) C=fliplr(Ccc) Computer response: ans = a den = 1 2 1 5 10
Transfer function: 5 s + 10
s^4 + 2 s^3 + s^2 + 5 s + 10
A = 0 1 0 0 0 0 1 0 0 0 0 1 -10 -5 -1 - B = 0 0 0 1 C = 10 5 0 0 ans = b den = 1 9 10 8 0 0
Transfer function: s^4 + 2 s^3 + 12 s^2 + 7 s + 3
s^5 + 9 s^4 + 10 s^3 + 8 s^
A = 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 -8 -10 -
62 Chapter 3: Modeling in the Time Domain
a. G(s)= C (s I - A ) -1 B
A =
0 1 0 0 0 1 -3 -2 -
; B =
0 0 10
; C = 1 0 0
(s I - A )-1^ = 1 s^3 + 5s^2 + 2s +
s^2 +5s+2 s+5 1 -3 s(s+5) s -3s -2s-3 s^2
Therefore, G(s) = (^) s 3 +5s^10 2 +2s+.
b. G(s)= C (s I - A ) -1 B
A
2 3 − 8 0 5 3 − 3 − 5 − 4
1 4 6
s I − A −^11 s 3 − 3 s 2 − 27 s+ 157
s 2 − s− 5 3 s + 52 − 8 s+ 49 − 9 s 2 + 2 s − 32 3 s − 6 − 3 s+ 15 − 5 s+ 1 s 2 − 7 s+ 10
Therefore, G s 49 s^
(^2) − 349 s+ 452 s 3 − 3 s 2 − 27 s+ 157
=.
c. G(s)= C (s I - A ) -1 B
; C = (^) [ 1 − (^4 3) ]
( s I − A )−^1 =
s 3 + 3s 2 + 19s − 133
(s 2 + 6s + 26) −(5s + 2) (2s − 19) (s − 23) (s 2 − 5s + 12) (7s − 19) −(3s + 30) −(6s − 33) (s 2 + 5s − 19)
Therefore, G(s) = 23s 2 − 48s − 7 s 3 + 3s 2 + 19s − 133
.
15. Program: 'a' A=[0 1 3 0;0 0 1 0;0 0 0 1;-7 -9 -2 -3]; B=[0;5;8;2]; C=[1 3 4 6]; D=0; statespace=ss(A,B,C,D)
Solutions to Problems 63
[num,den]=ss2tf(A,B,C,D); G=tf(num,den) 'b' A=[3 1 0 4 -2;-3 5 -5 2 -1;0 1 -1 2 8;-7 6 -3 -4 0;-6 0 4 -3 1]; B=[2;7;6;5;4]; C=[1 -2 -9 7 6]; D=0; statespace=ss(A,B,C,D) [num,den]=ss2tf(A,B,C,D); G=tf(num,den) Computer response: ans =
a
a = x1 x2 x3 x x1 0 1 3 0 x2 0 0 1 0 x3 0 0 0 1 x4 -7 -9 -2 -
b = u x1 0 x2 5 x3 8 x4 2
c = x1 x2 x3 x y1 1 3 4 6
d = u y1 0
Continuous-time model.
Transfer function: 59 s^3 - 164 s^2 - 1621 s - 260
s^4 + 3 s^3 + 2 s^2 + 30 s + 7
ans =
b
a = x1 x2 x3 x4 x x1 3 1 0 4 - x2 -3 5 -5 2 - x3 0 1 -1 2 8 x4 -7 6 -3 -4 0 x5 -6 0 4 -3 1
b = u x1 2
Solutions to Problems 65
ans = T(s) 2 3 -164 s - 1621 s - 260 + 59 s
4 3 2 s + 3 s + 2 s + 30 s + 7 ans = b ans = T(s) 2 3 4 14582 s + 1708 s - 408 s - 7 s + 27665
5 4 3 2 s - 4 s - 32 s + 148 s - 1153 s - 4480 17.
Let the input be
dθz dt =ωz^ , x^ 1=θx^ , x^ 2=θ
. x. Therefore,
x
. 1 = x^2 x
. 2 = -
K (^) x J (^) x x^1 -
D (^) x J (^) x x^2 + Jωωz
The output is θx. In vector-matrix form, θx = x 1. Therefore, y = x (^) 1.
x^.^ =
0 1
K (^) x J (^) x -
D (^) x J (^) x
x + 0 Jω ω (^) z
y = 1 0 x
18.
The equivalent cascade transfer function is as shown below.
K (^) a K (^3)
s 3 +
K 3 s^
K 3 s+
s+
K (^) b K (^) a
d (s) X(s)^ F^ (s)
66 Chapter 3: Modeling in the Time Domain
For the first box, x...^ +
K 2 K 3 x
..+K 1 K 3 x
. (^) +K 0 K 3 x =
Ka K 3 δ(t). Selecting the phase variables as the state variables: x 1 =x, x 2 =x^.^ , x 3 =x^ ...
Writing the state and output equations: x
. 1 = x^2 x
. 2 = x^3 x
. 3 = -
K 0 K 3 x^1 -^
K 1 K 3 x^2 -
K 2 K 3 x^3 +
Ka K 3 δ(t) y = φ(t) = x
.
Kb Ka x =
Kb Ka x^1 +x^2 In vector-matrix form,
x^.^ =
0 1 0 0 0 1
K 0 K 3 -
K 1 K 3 -
K 2 K 3
x +
0 0 Ka K 3
δ(t) ; y =
Kb Ka^1 0 x
19. Since Tm = Jeq dωm dt + Deqωm,^ and Tm^ = Kt^ ia, Jeq
dωm dt + Deqωm =^ Kt^ ia^ (1)
Or, dωm dt = -
Deq Jeq ωm^ +^
Kt Jeq ia But, ωm =
N 2 N 1 ωL.
Substituting in (1) and simplifying yields the first state equation,
dωL dt = -
Deq Jeq ωL^ +^
Kt Jeq
N 1 N 2 ia The second state equation is: dθL dt =^ ωL Since ea = Raia+La dia dt +Kbωm^ = Raia+La
dia dt +Kb
N 2 N 1 ωL, the third state equation is found by solving for
dia dt. Hence, dia dt = -
Kb La
N 2 N 1 ωL^ -
Ra La ia+
1 La ea