diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /29/CH11/EX11.14/exa11_14.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '29/CH11/EX11.14/exa11_14.sce')
-rwxr-xr-x | 29/CH11/EX11.14/exa11_14.sce | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/29/CH11/EX11.14/exa11_14.sce b/29/CH11/EX11.14/exa11_14.sce new file mode 100755 index 000000000..5dd2a2c1b --- /dev/null +++ b/29/CH11/EX11.14/exa11_14.sce @@ -0,0 +1,31 @@ +//caption:determine_Wn,Wd,Tp,zeta_and_steady_state_error
+//example 11_14
+//page 484
+s=%s;
+syms t;
+G=20/((s+5)*(s+1))
+H=1;
+CL=G/.H
+disp(CL,"C(s)/R(s)=")
+b=denom(CL)
+disp(0,b,"=","the char. eq is:",)
+Wn=sqrt(25)//natural_frequency
+//2*zeta*Wn=6
+zeta=6/(2*Wn);//damping ratio
+d=zeta*Wn;//damping_factor
+z=sqrt(1-zeta^2);
+Wd=Wn*z;//damped_frequency_of_oscillation
+Mp=exp((-zeta*%pi)/z)*100;//%_max.peak_overshoot
+Tp=%pi/Wd//peak time
+tfirst=(2*%pi)/Wd //time for first under shoot
+period=(2*%pi)/Wd //period of oscillation
+ts=4/(zeta*Wn)//settling time
+N=(Wd/(2*%pi))*ts//no. of oscillations completed before reaching steady state
+disp(Wn,"natural frequency=");
+disp(zeta,"damping ratio=");
+disp(Wd,"damped frequency of oscillation=");
+disp(Tp,"peak time=");
+disp(Mp,"%_max.peak overshoot=");
+disp(tfirst,"time for first under shoot=");
+disp(period,"period of oscillation=");
+disp(N,"no. of oscillations completed before reaching steady state=");
\ No newline at end of file |