summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.23/2_23.sce
blob: 6c7dd66bf1fa578a3f35063a3da91c6aae71412e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//ques-2.23
//Calculating percentage of excess air used for combustion of coal
clc
C=540;//weight of carbon in coal (in g)
H=65;//weight of hydrogen in coal (in g)
S=32;//weight of sulphur in coal (in g)
O=60;//weight of oxygen in coal (in g)
N=18;//weight of nitrogen in coal (in g)
moisture=173;//weight of moisture in coal (in g)
M=20;//total weight of dry products/kg of coal burnt (in kg)
m1=C*(32/12);//weight of oxygen for carbon (in g)
m2=H*(16/2);//weight of oxygen for hydrogen (in g)
m3=S*(32/32);//weight of oxygen for sulphur (in g)
total=m1+m2+m3;//total weight of oxygen required (in g)
net=total-O;//net oxygen required (in g)
W1=net*(100/23);//corresponding weight of air (in g)
w1=C*(44/12);//weight of carbon dioxide in dry flue gas (in g)
w2=S*(64/32);//weight of sulphur dioxide in dry flue gas (in g)
w3=N;//weight of nitrogen in dry flue gas (in g)
W2=w1+w2+w3;//total weight of dry flue gas (in g)
T=W1*(77/100)+W2;//total weight of dry products (in g)
W3=M-T/1000;//weight of excess air (in kg)
P=(W3/W1)*100*1000;//percentage of excess air
printf("The percentage of excess air used is %.1f.",P);