Assignment-5: %assignment Submitted by %name: Jeswin Tom Joseph %roll - No: CH17B052
Assignment-5: %assignment Submitted by %name: Jeswin Tom Joseph %roll - No: CH17B052
%Assignment submitted by
%Name: Jeswin Tom Joseph
%Roll_no: CH17B052
1. The process is
a.
The root locus sketch
Asymptotic Angles
Hence
Centroid
Break in points
Hence,
Angle of arrival
b.
c.
Using the 'rltool' command, we can find find the point at which the system achieves a damping
%rltool(Gp);
Kc_1 = 27.4402
Hence
PI Controller is used.
For getting ultimate gain, we need to find the crossover point into RHP for the root locus.
Since , we have
Finding the crossover point for the given open loop transfer function
%Defining the numerator and denominator part of transfer function
s=tf('s');
num1=s^2+4*s+8;
den1=s*(s+1)*(s+3)*(s+10);
Gs1 =
s^2 + 4 s + 8
----------------------------------------------
s^5 + 14 s^4 + 70.44 s^3 + 139.8 s^2 + 219.5 s
Plot_1d =
resppack.rlplot
Gm1 = 156.0781
Wc1 = 3.9121
2.
For a P type controller, assuming a gain of , we have the closed loop transfer function as
a.
Lg_2a =
2.165 s + 2.165
exp(-2*s) * ----------------
10 s^2 + 7 s + 1
Plot_2a =
resppack.bodeplot
Plot_2a.showCharacteristic('MinimumStabilityMargins')
Clearly from the plot, the Phase margin is 69.3 degrees
b.
Also,
x=fsolve(@gain_find,[1 11]);
%function to find the gain and frequency
function f=gain_find(x0)
Kp = 1.0825;
%defining the initial values
w = x0(1);
k = x0(2);
f(1) = 2*sqrt(w^2+1)*sqrt(Kp^2+(Kp/(w*k))^2)- (sqrt(25*w^2+1)*sqrt(4*w^2+1));
f(2) = pi+atan(w)-2*w +pi-atan(1/(w*k)) - atan(5*w) - atan(2*w) + 2*pi/3;
end
Equation solved.
tau = 0.0334
Clearly,
Kc_2b =
0.03617 s + 1.083
-----------------
0.03342 s
Lg_2b =
Plot_2b =
resppack.bodeplot
Plot_2b.showCharacteristic('MinimumStabilityMargins')
Hence the corresponding Gain Margin is 3.37 dB
c.
step(Lg_2b)
d.
Here
integral_2d1 = -7.0842e-04
integral_2d2 = -5.3354
3.
a.
b.
Gs_3 =
2
exp(-1*s) * --------------
s^2 + 3 s - 10
Plot_3b =
resppack.nyquistplot
Plot_3b.showCharacteristic('MinimumStabilityMargins')
Hence
We know,
Therefore
c.
Plot_3c1 =
resppack.timeplot
Plot_3c1.showCharacteristic('PeakResponse')
Plot_3c2 =
resppack.timeplot
Plot_3c2.showCharacteristic('PeakResponse')
Clearly, from the plots, we can see that :
• For using a controller neglecting the delay term, the system is stable, with settling time
of 7 seconds.
Plot_3c3 =
resppack.timeplot
Plot_3c3.showCharacteristic('PeakResponse')
From the plot, we can see that by using Pade's Second order approximation and controller the
system becomes unstable