summaryrefslogtreecommitdiff
path: root/3434/CH8/EX8.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH8/EX8.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '3434/CH8/EX8.2')
-rw-r--r--3434/CH8/EX8.2/Ex8_2.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/3434/CH8/EX8.2/Ex8_2.sce b/3434/CH8/EX8.2/Ex8_2.sce
new file mode 100644
index 000000000..7071bddc7
--- /dev/null
+++ b/3434/CH8/EX8.2/Ex8_2.sce
@@ -0,0 +1,30 @@
+clc
+// given data
+Gaslight=10*0.227*4 // gas required for lighting in m^3/day
+Eleccomp=10*250*6*60*60/1000000.0 // electrical energy required by computers in MJ
+effith=0.25 // thermal efficieny
+efficonv=0.80 // conversion efficiency
+Heat=23.0 // heating value of biogas in MJ/m^3
+rho=1090.0 // slurry density in kg/m^3
+Engineinput=Eleccomp/(effith*efficonv)
+
+energypump=746*2*2*60*60/1000000.0 // mechanical energy required for pumping in MJ
+themalinput=energypump/effith // required thermal input in MJ
+totalinput=themalinput+Engineinput // total thermal input required by engine
+
+Volreq=totalinput/Heat // volume required per day in m^3/day
+Totalrq=Volreq+Gaslight // total gas required in m^3 /day
+
+n=Totalrq/(7*0.18*0.34) // solid mass is 18% and n is number of cows required
+n=round(n)
+printf("The number of cows is %i",n)
+feed=7*n // daily feed in kg
+slurry=2*feed // in kg
+volslurry=slurry/rho // volume of slurry added per day in m^3
+totalvol=50*volslurry/0.9 // total volume for 50 days in m^3 when 90 % is occupied by slurry
+
+printf("\n The size of biogas plant is %.2f m^3",totalvol)
+
+
+
+