summaryrefslogtreecommitdiff
path: root/3689/CH6/EX6.2
diff options
context:
space:
mode:
Diffstat (limited to '3689/CH6/EX6.2')
-rw-r--r--3689/CH6/EX6.2/6_2.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3689/CH6/EX6.2/6_2.sce b/3689/CH6/EX6.2/6_2.sce
new file mode 100644
index 000000000..1b6638167
--- /dev/null
+++ b/3689/CH6/EX6.2/6_2.sce
@@ -0,0 +1,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)
+