summaryrefslogtreecommitdiff
path: root/2837/CH15
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH15
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2837/CH15')
-rwxr-xr-x2837/CH15/EX15.1/Ex15_1.sce13
-rwxr-xr-x2837/CH15/EX15.2/Ex15_2.sce18
-rwxr-xr-x2837/CH15/EX15.3/Ex15_3.sce21
3 files changed, 52 insertions, 0 deletions
diff --git a/2837/CH15/EX15.1/Ex15_1.sce b/2837/CH15/EX15.1/Ex15_1.sce
new file mode 100755
index 000000000..0acaf70fd
--- /dev/null
+++ b/2837/CH15/EX15.1/Ex15_1.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Initalization of variables
+kp=10^(1.45)
+//calculations
+x=poly(0,"x")
+s=(1-x)^2 *(2+x) -kp^2 *x^(3)
+vec=roots(s)
+X=vec(3)
+xper=X*100
+//results
+printf("Amount of dissociaton = %.1f percent",xper)
+printf("\n Of each original mole of CO2, there will be %.3f mole of CO , %.3f mol of Oxygen and %.3f mol of CO2",X,X/2,(1-X))
diff --git a/2837/CH15/EX15.2/Ex15_2.sce b/2837/CH15/EX15.2/Ex15_2.sce
new file mode 100755
index 000000000..7b1e85836
--- /dev/null
+++ b/2837/CH15/EX15.2/Ex15_2.sce
@@ -0,0 +1,18 @@
+clc
+clear
+//Initalization of variables
+U=121200 //Btu/mol
+Uco2=51635 //Btu/mol
+Un2=27589 //Btu/mol
+Uco22=57875 //Btu/mol
+Un22=21036 //Btu/mol
+T1=5000 //R
+T2=5500 //R
+//calculations
+Ut1=Uco2+1.88*Un2
+Ut2=Uco22 + 1.88*Un22
+disp("By extrapolation,")
+Tx=5710 //R
+//results
+printf("Max. Temperature reached = %d R",Tx)
+disp("The calculation for Ut2 is wrong in textbook. Please use a calculator.")
diff --git a/2837/CH15/EX15.3/Ex15_3.sce b/2837/CH15/EX15.3/Ex15_3.sce
new file mode 100755
index 000000000..70edb9f94
--- /dev/null
+++ b/2837/CH15/EX15.3/Ex15_3.sce
@@ -0,0 +1,21 @@
+clc
+clear
+//Initalization of variables
+disp("By trial and error,")
+X=0.201
+X1=0.2
+R=59.3 //universal gas constant
+T=5000 //R
+U=121200 //Btu/mol
+Uco2=51635 //Btu/mol
+Un2=27907 //Btu/mol
+U3=29616 //Btu/mol
+U4=27589 //Btu/mol
+//calculations
+kp1=R*(1-X1)/X1^1.5 /T^0.5
+kp2=R*(1-X)/X^1.5 /T^0.5
+q=(1-X)*Uco2 + X*Un2+ X/2 *U3 +1.88*U4 + X*U
+disp("Interpolating between T=4500 R and T=5000 R, we get")
+T2=4907 //R
+//results
+printf("Max. obtainable temperature = %d R",T2)