summaryrefslogtreecommitdiff
path: root/3689/CH6/EX6.2/6_2.sce
blob: 1b663816774f69ddfa94df884a4dfbf030f56890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
////Variable Declaration
dHcCH4 = -891.0        //Std. heat of combustion for CH4, kJ/mol
dHcC8H18 = -5471.0     //Std. heat of combustion for C8H18, kJ/mol

T = 298.15
[SmCO2,SmCH4,SmH2O,SmO2,SmC8H18] = (213.8,186.3,70.0,205.2,316.1)
dnCH4 = -2.
dnC8H18 = 4.5
R = 8.314
//Calculations
dGCH4 = dHcCH4*1e3  - T*(SmCO2 + 2*SmH2O - SmCH4 - 2*SmO2)
dGC8H18 = dHcC8H18*1e3 - T*(8*SmCO2 + 9*SmH2O - SmC8H18 - 25.*SmO2/2) 
//Results 
printf("\n Maximum nonexpansion work through combustion of CH4 %4.1f kJ/mol",dGCH4/1000)

printf("\n Maximum nonexpansion work through combustion of C8H18 %4.1f kJ/mol",dGC8H18/1000)