From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3434/CH8/EX8.2/Ex8_2.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 3434/CH8/EX8.2/Ex8_2.sce (limited to '3434/CH8/EX8.2') 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) + + + + -- cgit