summaryrefslogtreecommitdiff
path: root/1427/CH2/EX2.2/2_2.sce
blob: bf8d1cba7b8e30dae281f6c39765074665a10dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//ques-2.2
//Calculating percentage of hydrogen and Higher calorific value
clc
C=90;//Percentage of Carbon in coal
O=3;//Percentage of Oxygen in coal
S=0.5;//Percentage of Sulphur in coal
NCV=8490.5;//Net calorific value (in kcal/kg)
//HCV=NCV+0.09*H*587;
//HCV=(8080*C+34500*(H-O/8)+2240*S)/100;
//Solving for H
H=1335.7/292.2;//Percentage of hydrogen
HCV=NCV+0.09*H*587;//Higher calorific value
printf("The pecentage of Hydrogen is %.3f and Higher calorific value is %.1f kcal/kg.\n",H,HCV);