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 /2837/CH15/EX15.3 | |
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 '2837/CH15/EX15.3')
-rwxr-xr-x | 2837/CH15/EX15.3/Ex15_3.sce | 21 |
1 files changed, 21 insertions, 0 deletions
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)
|