summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.14/Chapter2_Example14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH2/EX2.14/Chapter2_Example14.sce')
-rw-r--r--1808/CH2/EX2.14/Chapter2_Example14.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1808/CH2/EX2.14/Chapter2_Example14.sce b/1808/CH2/EX2.14/Chapter2_Example14.sce
new file mode 100644
index 000000000..f52371727
--- /dev/null
+++ b/1808/CH2/EX2.14/Chapter2_Example14.sce
@@ -0,0 +1,24 @@
+clc
+clear
+//INPUT DATA
+//CH4+2O2=CO2+H2O ;//Combustion equation
+//Q=Up-Ur ;//Energy balance for the closed system
+hfco2=-393520;//enthalpy of CO2 From the table
+dhco2=28041;//change in enthalpy in KJ/kmol
+hfh2o=-241820;//enthalpy of H2O From the table
+dhh2o=21924;//change in enthalpy in KJ/kmol
+hfch4=-74850;//enthalpy of CH4 From the table
+t1=298;//initial temperature in K
+t2=900;//final temperature in K
+p1=1;//Pressure in atm
+R=8.314;//gas constant
+
+//CALCULATIONS
+Q=(hfco2+dhco2)+2*(hfh2o+dhh2o)-(hfch4)+3*R*(t1-t2);//Amount of heat transfer in kJ/kmol
+p2=p1*(t2/t1);//Final pressure in atmosphere
+
+//OUTPUT
+printf('(i)Amount of heat transfer is %3.2f kJ/kmol \n (ii)Final pressure is %3.2f atmosphere',Q,p2 )
+
+
+