diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH15/EX15.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2870/CH15/EX15.7')
-rwxr-xr-x | 2870/CH15/EX15.7/Ex15_7.sce | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/2870/CH15/EX15.7/Ex15_7.sce b/2870/CH15/EX15.7/Ex15_7.sce new file mode 100755 index 000000000..0604f043c --- /dev/null +++ b/2870/CH15/EX15.7/Ex15_7.sce @@ -0,0 +1,35 @@ +clc;clear;
+//Example 15.7
+//error of 0.17% in (b) part calulation error in textbook
+
+//given data
+Preact=1;
+Treact=77+460;
+Tprod=1800;
+
+//constants used
+Ru=1.986;
+
+//calculation
+//CH4 + 3O2 = CO2 + 2H2O + O2
+Nreact=4;
+Nprod=4;
+Pprod=Preact*Nprod/Nreact*Tprod/Treact;
+disp(Pprod,'the final pressure in the tank in atm');
+//from std. values of heat of formation and ideal gasses in Appendix
+//CH4 as m
+hfm=-32210;
+//O2 as o
+hfo=0;
+h537o=3725.1;
+h1800o=13485.8;
+//water as w
+hfw=-104040;
+h537w=4528;
+h1800w=15433;
+//carbondioxide as c
+hfc=-169300;
+h537c=4027.5;
+h1800c=18391.5;
+Qout=1*(hfm-Ru*Treact)+3*(hfo-Ru*Treact)-1*(hfc+h1800c-h537c-Ru*Tprod)-2*(hfw+h1800w-h537w-Ru*Tprod)-1*(hfo+h1800o-h537o-Ru*Tprod);
+disp(Qout,'the heat transfer during this process in Btu/lbmol')
|