diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3733/CH32/EX32.18/Ex32_18.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3733/CH32/EX32.18/Ex32_18.sce')
-rw-r--r-- | 3733/CH32/EX32.18/Ex32_18.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/3733/CH32/EX32.18/Ex32_18.sce b/3733/CH32/EX32.18/Ex32_18.sce new file mode 100644 index 000000000..32b6c2c6b --- /dev/null +++ b/3733/CH32/EX32.18/Ex32_18.sce @@ -0,0 +1,28 @@ +// Example 32_18
+clc;funcprot(0);
+//Given data
+L_max=6000;// MW
+L_min=2000;// MW
+P_cap=7000;// MW
+
+// Calculation
+t=[0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24];// Time in hours
+for(i=1:25)
+ L(i)=(2000+(4000*sin((%pi*t(i))/24)));
+end
+t_1=[0 12 24 24];// Time in hours
+L_cap=[7000 7000 7000 8000];// Plant capacity in MW
+xlabel('t(time in hrs)');
+ylabel('Load in kW');
+xtitle('Fig.Prob.32.18');
+plot(t,L,'g', t_1,L_cap,'b-.');
+a=gca();
+a.x_ticks.labels=["0","","","","","","12","","","","","","24"];
+a.x_ticks.locations=[0;2;4;6;8;10;12;14;16;18;20;22;24];
+legend('Load curve','L_cap')
+t_1=0;
+t_2=24;// Limits of integration
+L_av=(1/24)*integrate('(2000+(4000*(sin((%pi*t)/(24)))))','t',t_1,t_2);// Average load on the plant in MW
+PLF=(L_av/L_max);// Plant load factor
+PCF=(L_av/P_cap);// Plant Capacity factor
+printf('\nAverage load on the plant=%0.1f MW \nPlant load factor=%0.3f \nPlant Capacity factor=%0.2f',L_av,PLF,PCF);
|