summaryrefslogtreecommitdiff
path: root/3733/CH32/EX32.15/Ex32_15.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3733/CH32/EX32.15/Ex32_15.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-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.15/Ex32_15.sce')
-rw-r--r--3733/CH32/EX32.15/Ex32_15.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3733/CH32/EX32.15/Ex32_15.sce b/3733/CH32/EX32.15/Ex32_15.sce
new file mode 100644
index 000000000..77985de59
--- /dev/null
+++ b/3733/CH32/EX32.15/Ex32_15.sce
@@ -0,0 +1,26 @@
+// Example 32_15
+clc;funcprot(0);
+//Given data
+MD_1=15;// Maximum demand in MW
+MD_2=25;// Maximum demand in MW
+MD_3=50;// Maximum demand in MW
+F_di1=1.25;// Diversity factor
+F_di2=1.20;// Diversity factor
+F_di3=1.30;// Diversity factor
+F_d1=0.70;// Demand factor
+F_d2=0.90;// Demand factor
+F_d3=0.98;// Demand factor
+F_dio=1.5;// Diversity factor
+
+// Calculation
+//(a)
+MD_s=MD_1+MD_2+MD_3;// The sum of maximum demands from all customers in MW
+MD=MD_s/F_dio;// Maximum demand of the plant in MW
+//(b)
+Mdl=MD_1*F_di1;// Maximum domestic load demand in MW
+Cdl=Mdl/F_d1;// Connected domestic load in MW
+Ccl=(MD_2*F_di2)/F_d2;// Connected commercial load in MW
+Cil=(MD_3*F_di3)/F_d3;// Connected industrial load in MW
+Tcl=Cdl+Ccl+Cil;// Total connected load to the plant in MW
+printf('\n(a)Maximum demand of the plant=%0.0f MW \n(b)Connected commercial load=%0.2f MW \n Connected industrial load=%0.2f MW \n Connected industrial load=%0.2f MW \n Total connected load to the plant=%0.2f MW',MD,Cdl,Ccl,Cil,Tcl);
+// The answer vary due to round off error