summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.16/Chapter2_Example16.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH2/EX2.16/Chapter2_Example16.sce')
-rw-r--r--1808/CH2/EX2.16/Chapter2_Example16.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1808/CH2/EX2.16/Chapter2_Example16.sce b/1808/CH2/EX2.16/Chapter2_Example16.sce
new file mode 100644
index 000000000..91385906d
--- /dev/null
+++ b/1808/CH2/EX2.16/Chapter2_Example16.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//INPUT DATA
+//C2H2+3O2=2CO2+2H2O ;//Chemical equation
+t1=298;//initial temperature in K
+t2=800;//Final temperature in K
+R=0.287;//gas constant in kJ/kgK
+dhCO2=22815;//From tables enthalpy of CO2 kJ/kmol
+dhH2O=17991;//From tables enthalpy of H2O kJ/kmol
+hfCO2=-393520;//From tables enthalpy of CO2 kJ/kmol
+hfH2O=-241827;//From tables enthalpy of H2O kJ/kmol
+hfC2H4=52283;//From tables enthalpy of C2H4 kJ/kmol
+
+//CALCULATIONS
+Q=2*(hfCO2+dhCO2)+2*(hfH2O+dhH2O)-1*(hfC2H4)-4*R*(t2-t1);//amount of heat transfer from the reactants
+
+//OUTPUT
+printf('(i)The amount of heat transfer from the reactants is %3.1f kJ/kmol of fuel ',Q)
+