summaryrefslogtreecommitdiff
path: root/3831/CH15/EX15.9/Ex15_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH15/EX15.9/Ex15_9.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3831/CH15/EX15.9/Ex15_9.sce')
-rw-r--r--3831/CH15/EX15.9/Ex15_9.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3831/CH15/EX15.9/Ex15_9.sce b/3831/CH15/EX15.9/Ex15_9.sce
new file mode 100644
index 000000000..4d312c855
--- /dev/null
+++ b/3831/CH15/EX15.9/Ex15_9.sce
@@ -0,0 +1,18 @@
+// Example 15_9
+clc;funcprot(0);
+// Given data
+h_R=-74.873;// MJ/kgmole CH4
+h_f_N_2=0;// MJ/kgmole
+h_f_CO2=-393.522;// MJ/kgmole
+h_f_H2O_g=-241.827;// MJ/kgmole
+h_f_H2O_l=-285.838;// MJ/kgmole
+c_p_CO2=0.03719;// MJ/kgmole.K
+c_p_H2O=0.03364;// MJ/kgmole.K
+c_p_N2=0.02908;// MJ/kgmole.K
+T=500;// °C
+T_0=25;// °C
+
+// Calculation
+h_P=h_f_CO2+(2*h_f_H2O_g)+(7.52*h_f_N_2)+([c_p_CO2+(2.00*c_p_H2O)+(7.52*c_p_N2)]*(T-T_0));// MJ/kgmole CH4
+q_r=h_P-h_R;// MJ/kgmole CH4
+printf("\nThe heat of reaction of methane,qbar_r=%3.3f MJ/kgmole CH4",q_r);