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 /416/CH4/EX4.22/exp4_22cpp.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 '416/CH4/EX4.22/exp4_22cpp.sce')
-rwxr-xr-x | 416/CH4/EX4.22/exp4_22cpp.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/416/CH4/EX4.22/exp4_22cpp.sce b/416/CH4/EX4.22/exp4_22cpp.sce new file mode 100755 index 000000000..dcd5b91fa --- /dev/null +++ b/416/CH4/EX4.22/exp4_22cpp.sce @@ -0,0 +1,30 @@ +clc
+clear
+disp("example 4 22")
+t=16//working time
+d=300 //working days
+hv=1;hvmd=50 //tariff on high voltage
+lv=1.1;lvmd=60 //tariff on low voltage
+al=250//avarage load
+pf=0.8//power factor
+md=300 //maximum demand
+hvec=500//cost of hv equipment
+l=0.05 //loss of hv equipment
+id=0.12 //interest and deprecistion
+ter=al*md*t
+mdv=md/pf
+printf(" total energy requirement %2.2ekWH \n maximum demand %dKVA",ter,mdv)
+disp("(a)HV supply")
+chv=mdv*hvec
+idc=chv*id
+ere=ter/(1-l)
+dch=mdv*hvmd
+ech=round(ere*hv/1000)*1000
+tanc=ech+dch+idc
+printf(" cost of HV equipment Rs%e\n interest and depreciation charges Rs%d \n energy received %ekWh\n demand charges Rs%d \n energy charges Rs%2e \n total annual cost Rs%d",chv,idc,ere,dch,ech,tanc)
+disp("(b) LV supply")
+lvdc=mdv*lvmd
+lvec=ter*lv
+lvtac=lvec+lvdc
+lvdac=lvtac-tanc
+printf(" demand charges Rs%d \n energy charges Rs%2.e \n total annual cost Rs%d \n difference in annual cost Rs%d",lvdc,lvec,lvtac,lvdac)
\ No newline at end of file |