Advanced Control: Modeling Problem by Using MATLAB
Advanced Control: Modeling Problem by Using MATLAB
Advanced Control
Modeling Problem by Using MATLAB
Solved By Abdulrahman Yossri Mahmoud Presented To Ass. Prof. Dr. Saber M Abdrabbo
Assignment #1
Modeling Problem by Using Laplace Transforms Plotting Graph bet. Displacement & Time
Case1:
Due to F.B.D = + + = ( )=[ =[ + C=2
+ 2 + 1] ( ) 1 ( )= = [ + 2 + 1] +1 + ( + 1)
1 = ( + 1)
( + 1) + ( + 1) + ( + 1) A=1 C = -1 B = -1
1 1 + 1 ( + 1)
>> syms x s >> x = 1/(s*((s^2)+ (2*s)+1)); >> ilaplace (x) ans = 1+(-1-t)*exp(-t)
Case2:
Due to F.B.D = + + = ( )=[ + C=7
By using partial fraction A B C X(s) = + + S ( S + 3) ( S + 4) 1 S( S + 3)( S + 4) A( S + 3)( S + 4) + BS( S + 4) + CS( S + 3) = S( S + 3)( S + 4) Sub S = 0 Sub S = -3 A= B= Sub S = -4 C= 1 1 1 1 1 1 X(s) = + 12 S 3 S + 3 4 S + 4
Case3:
Due to F.B.D + = ( )=[ +
= [S + S + 2] X(s)
>> syms x s >> x = 1/(s*((s^2)+ (s)+2)); >> ilaplace (x) ans = -1/2*exp(-1/2*t)*cos(1/2*7^(1/2)*t)1/14*7^(1/2)*exp(-1/2*t)*sin(1/2*7^(1/2)*t)+1/2
Assignment #2
Modeling Problem by Using SIMULINK Plotting Graph bet. Displacement & Time
Case1:
Assuming: R=1 L=1 J=2 C=7 Km=1.5 Ka=1.5
10
Case3:
Assuming: R=2 L=1 J=2 C=5 Km=0.5 Ka=3
11
Assignment #3
Modeling Problem of a Pneumatic System Getting Response by Using SIMULINK
12
( )=
= = )
=(
( )=( ( ) ( )=
( )=(
( )=(
( )=
( )
( )
+ 1) ( ) ( ))
( )
( )
+ 1) ( ) ( )
13
14
Assignment #4
Derivative of LOGARITHMIC DECREMENT
15
( )=1 +2
+ + 1
= =
+ 1
= =
( )=
16
So,
Where
Since the sin may be equal for tiny increase (d) so, sin( ( + )) sin(
17
sin( ) ) sin( ( +
sin(
) ))
= ln ln = ln = ln
( (
) )
ln
= ln = = =
= 2
1 1 2
The relation between the logarithmic decrement and damping factor is given by: = 4 +
18
Assignment #5
Solving a STEADY STATE ERROR problem
19
Problem
For the shown system and corresponding response graph find: M, C and K Given Mp = 0.095 Solution From the given data, the maximum peak = 0.095 = 0.095 = Tp = 5 sec F = 2N
= ln 0.095 1
ln 0.095 =
= 1.33
1 = 2.78
20
= 1.33
51 0.599
1 0.599
= 0.784
From the mechanical motion of the system Due to F.B.D = + + = By using Laplace transform ( )=[ But + + + ] ( ) + ]
( ) = ( ) [
( )=
( )=2
2 +
21
+ ]
So,
lim ( ) = lim
( ) = 2
But
( )=
2 +
+ ]
0.1 =
() = 0.1 2 = 20
2 So, = =2
And
20 = 32.5 0.784
22
Assignment #6
Solving a NYQUIST PLOTTING problem
23
Problem: = ( + )( + )
Draw the Nyquist diagram, then: 1) Find value of K for stability. 2) For K = 4 the phase margin and gain margin. 3) Find K at phase margin = 30. 4) Find K at gain margin =10 dB. Solution: Assume K = 1, So 1 ( + 1)( + 2) Along C1, convert from S-domain to frequency domain substitute with S j 1 ( ) ( )= ( + 1)( + 2) ( ) ( )= The amplitude M is given by: 1 = ( + 1)( The angle is given by: + 4) 1 tan 2
24
=0
So, = 2 lim
= lim
But
lim
So, it is an arc of radius and ploe d from 9 0 -90. Then draw a polar plot of Nyquist criterion.
+1 = =
lim
1 2 lim
1 lim 2
+1
1 lim 2
+1 =1
+1
25
1) To get the value of K for stability, find the intersection at = -180 = 0 90 tan 1 tan 2 = 180
By using trail and error method, we get = 1.415 The stability occurred at M = 1. So, = (
+ 1)(
+ 1)(
+ 4)
+ 4)
26
2) The gain margin at K = 4, subst ut e in the e quaon of p h as e an gl e at condition of = -180 = 0 90 tan 1 tan 2 = 180
Subst ut e a t K = 4 to g et the a m p l itude o f the g ai n m a r gi n 4 = = 0.67 1.415 (1.415 + 1)(1.415 + 4) The gain margin is given by 1 = 3.48 0.67 The phase margin at K = 4, subst ut e in the e quaon of am pl i tu de at condition of M = 1 4 = =1 ( + 1)( + 4) . = 20 log So, ( ( + 1)( + 1)( + 4) = 16 + 4) = 4 . = 20 log 1
Subst ut e a t K = 4 to g et the a ngl e o f the p hase m a r gi n 1.145 1.145 = 0 90 tan tan = 168.65 1 2 The phase margin is given by
.
= 1.145
180
= 11.35
27
180
tan
10 1 = log 20 1 = 3.18
= 20 log
So,
0.314 1 tan 2
So,
29