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/CH6/EX6.10.11/exa6_10_11.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/CH6/EX6.10.11/exa6_10_11.sce')
-rwxr-xr-x | 29/CH6/EX6.10.11/exa6_10_11.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/29/CH6/EX6.10.11/exa6_10_11.sce b/29/CH6/EX6.10.11/exa6_10_11.sce new file mode 100755 index 000000000..d3c82c930 --- /dev/null +++ b/29/CH6/EX6.10.11/exa6_10_11.sce @@ -0,0 +1,32 @@ +//caption:determine_characterstics_eq_and_steady_state_error
+//example 6.10.11
+//page 181
+//J=moment of inertia,f=C,K=controller gain,Wn=natural frequency, zeta=damping ratio
+syms f J K Kt
+s=%s;
+A=sym((1/(J*s^2+f*s)));
+J=250;
+K=8*10^4;
+B=eval(A)
+a=(K*B);
+H1=s*Kt;
+b=(1+a*H1);
+b=simple(b);
+CL1=a/b;
+CL1=simple(CL1);
+H=1;
+c=1+CL1*H;
+c=simple(c);
+CL=CL1/c
+CL=simple(CL);
+disp(CL,"C(s)/R(s)=");
+Wn=sqrt(80000/250)//natural frequency
+//2*zeta*Wn=(80000*Kt+f)/250
+zeta=1;//for critical damping
+d=2*zeta*Wn;
+v=[320 d 1];
+CH=poly(v,'s','coeff');
+r=float(5*2*%pi/60);
+//steady state error for unit ramp input is:Ess= (2*zeta/Wn)
+Ess=(2*zeta/Wn)*r;
+disp(Ess,"steady_state_error=");
|