summaryrefslogtreecommitdiff
path: root/3843/CH12/EX12.5/Ex12_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3843/CH12/EX12.5/Ex12_5.sce')
-rw-r--r--3843/CH12/EX12.5/Ex12_5.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3843/CH12/EX12.5/Ex12_5.sce b/3843/CH12/EX12.5/Ex12_5.sce
new file mode 100644
index 000000000..6ea6242db
--- /dev/null
+++ b/3843/CH12/EX12.5/Ex12_5.sce
@@ -0,0 +1,19 @@
+// Example 12_5
+clc;funcprot(0);
+// Given data
+T=25;// °C
+P=1;// atm
+// Assuming theoretical air C_3H_8+5(O_2+3.76N_2)--->3CO_2+4H_2O(l)+18.8N_2
+N_CO2=3;// mol
+N_H2O=4;// mol
+N_N2=18.8;// mol
+// From table B-7
+hbar0_fp=-103850;// kJ/kmol (C_3H_8)
+hbar_fgp=15060;// kJ/kmol (C_3H_8)
+hbar0_fCO2=-393520;// kJ/kmol
+hbar0_fH2O=-285830;// kJ/kmol
+
+// Calculation
+Q_gp=(N_CO2*hbar0_fCO2)+(N_H2O*hbar0_fH2O)-hbar0_fp;// The enthalpy of combustion of gaseous propane in kJ/kmol fuel
+Q_lp=(N_CO2*hbar0_fCO2)+(N_H2O*hbar0_fH2O)-(hbar0_fp-hbar_fgp);// The enthalpy of combustion of liquid propane in kJ/kmol fuel
+printf("\nThe enthalpy of combustion of gaseous propane,Q=%7.0f kJ/kmol fuel \nThe enthalpy of combustion of liquid propane,Q=%7.0f kJ/kmol fuel",Q_gp,Q_lp);