summaryrefslogtreecommitdiff
path: root/647/CH10/EX10.6/Example10_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH10/EX10.6/Example10_6.sce
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 '647/CH10/EX10.6/Example10_6.sce')
-rwxr-xr-x647/CH10/EX10.6/Example10_6.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/647/CH10/EX10.6/Example10_6.sce b/647/CH10/EX10.6/Example10_6.sce
new file mode 100755
index 000000000..4e401790a
--- /dev/null
+++ b/647/CH10/EX10.6/Example10_6.sce
@@ -0,0 +1,30 @@
+clear;
+clc;
+
+// Example: 10.6
+// Page: 403
+
+printf("Example: 10.6 - Page: 403\n\n");
+
+// Solution
+
+//*****Data******//
+deff('[P1] = f1(T)','P1 = exp(16.5915 - 3643.31/(T - 33.424))');
+deff('[P2] = f2(T)','P2 = exp(14.2532 - 2665.54/(T - 53.424))');
+deff('[A] = f3(T)','A = 2.771 - 0.00523*T');
+Temp = 318.15;// [K]
+x1 = 0.25;
+//**************//
+
+P1sat = f1(Temp);// [kPa]
+P2sat = f2(Temp);// [kPa]
+A = f3(Temp);
+x2 = 1 - x1;
+gama1 = exp(A*x2^2);
+gama2 = exp(A*x1^2);
+P = x1*gama1*P1sat + x2*gama2*P2sat;
+y1 = x1*gama1*P1sat/P;
+y2 = x2*gama2*P2sat/P;
+printf("In Vapour phase\n");
+printf("The mole fraction of methanol is %.3f\n",y1);
+printf("The mole fraction of methyl acetate is %.3f\n",y2); \ No newline at end of file