summaryrefslogtreecommitdiff
path: root/839/CH18/EX18.8/Example_18_8.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /839/CH18/EX18.8/Example_18_8.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 '839/CH18/EX18.8/Example_18_8.sce')
-rwxr-xr-x839/CH18/EX18.8/Example_18_8.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/839/CH18/EX18.8/Example_18_8.sce b/839/CH18/EX18.8/Example_18_8.sce
new file mode 100755
index 000000000..df622aee4
--- /dev/null
+++ b/839/CH18/EX18.8/Example_18_8.sce
@@ -0,0 +1,28 @@
+//clear//
+clear;
+clc;
+
+//Example 18.8
+//Given
+xOA = 0.15;
+xAi = 0.015;
+
+P = 1; //[atm]
+
+//Solution
+
+Pv = 3.4; //[atm]
+alpha_o = 3.4; //at 36 C
+Tbi = 27; //[C]
+alpha_i = 3.6
+alpha = (alpha_o+alpha_i)/2;
+//Basis 1 mol Feed
+nOA = 0.15; //[mol]
+nA = 0.015; //[mol]
+nOB = 0.85; //[mol]
+//Using Eq.(18.79)
+nB = nOB*(nA/nOA)^(1/alpha); //[mol]
+n = nA+nB; //[mol]
+xA = nA/n;
+disp('mol',nB,'pentane removed is')
+disp((1-xA),'xB',xA,'xA','composition of the remaining liquid is')