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 /2441/CH1/EX1.1/Ex1_1.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 '2441/CH1/EX1.1/Ex1_1.sce')
-rwxr-xr-x | 2441/CH1/EX1.1/Ex1_1.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/2441/CH1/EX1.1/Ex1_1.sce b/2441/CH1/EX1.1/Ex1_1.sce new file mode 100755 index 000000000..5f2292d9c --- /dev/null +++ b/2441/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,28 @@ +//exa 1.1
+clc;clear;close;
+format('v',6);
+B=100;//W(8Bulb)
+F=60;//W(2Fan)
+L=100;//W(2Light)
+LoadConnected=8*B+2*F+2*L;//W
+disp(LoadConnected,"(a) Connected Load (W)")
+//12 midnight to 5am
+demand1=1*F;//W
+//5am to 7am
+demand2=2*F+1*L;//W
+//7am to 9am
+demand3=0;//W
+//9am to 6pm
+demand4=2*F;//W
+//6pm to midnight
+demand5=2*F+4*B;//W
+DEMAND=[demand1 demand2 demand3 demand4 demand5]
+max_demand=max(DEMAND);
+disp(max_demand,"(b) Maximum demand (W)");
+df=max_demand/LoadConnected;//demand factor
+disp(df,"(c) Demand factor");
+E=demand1*5+demand2*2+demand3*2+demand4*9+demand5*6;//Wh
+E=E/1000;//kWh
+disp(E,"(d) Energy consumed during 24 hours(kWh)")
+Edash=LoadConnected*24/1000;//kWh
+ disp(Edash,"(e) Energy consumed during 24 hours if all devices are used(kWh)")
|