summaryrefslogtreecommitdiff
path: root/2441/CH5/EX5.19
diff options
context:
space:
mode:
Diffstat (limited to '2441/CH5/EX5.19')
-rwxr-xr-x2441/CH5/EX5.19/Ex5_19.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2441/CH5/EX5.19/Ex5_19.sce b/2441/CH5/EX5.19/Ex5_19.sce
new file mode 100755
index 000000000..019ba7a74
--- /dev/null
+++ b/2441/CH5/EX5.19/Ex5_19.sce
@@ -0,0 +1,16 @@
+//Example 5.19
+clc;clear;close;
+format('v',6);
+Tp=10;//sec
+Tg=0;//sec
+Tt=0;//sec
+Kp=100;//Hz/p.u.MW
+R=3;///Hz/CuMW
+delPD=0.1;//p.u.
+Ki=0.1;//constant
+f=50;//Hz
+s=poly(0,'s');
+delFs=-Kp/Tp*[delPD/(s^2+s*{(1+Kp/R)/Tp})+Ki*Kp/Tp];
+n=1;//cycle
+time_error=n/f;//sec
+disp(time_error,"Total time error(sec)");