summaryrefslogtreecommitdiff
path: root/416/CH14/EX14.8/example14_8pp.sce
diff options
context:
space:
mode:
Diffstat (limited to '416/CH14/EX14.8/example14_8pp.sce')
-rwxr-xr-x416/CH14/EX14.8/example14_8pp.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/416/CH14/EX14.8/example14_8pp.sce b/416/CH14/EX14.8/example14_8pp.sce
new file mode 100755
index 000000000..8ff3c9952
--- /dev/null
+++ b/416/CH14/EX14.8/example14_8pp.sce
@@ -0,0 +1,21 @@
+clc
+clear
+disp('example 14.8')
+c=4000//capacity
+f=50 //frequency
+ol=2500 //operating load
+r=2 //speed regulation
+h=5 //inertial constant
+dl=0.02 //change in load
+df=0.01 //change in frequency
+dff=-0.2 //change in steady state frequency
+d=(dl*ol)/(df*f) //
+dpu=d/c //din pu
+b=dpu+(1/r)
+m=-dff*b
+printf("largest chang in load is %.3fp.u.MW=%dMW",m,m*c)
+kp=(1/dpu)
+tp=(kp)*2*h/f
+tt=(r+kp)/(r*tp) //time constant
+printf("\ndf=(dff)(1-e^%f*t)",tt)
+