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 /542/CH11/EX11.13 | |
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 '542/CH11/EX11.13')
-rwxr-xr-x | 542/CH11/EX11.13/Example_11_13.sce | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/542/CH11/EX11.13/Example_11_13.sce b/542/CH11/EX11.13/Example_11_13.sce new file mode 100755 index 000000000..6c6fb5cd2 --- /dev/null +++ b/542/CH11/EX11.13/Example_11_13.sce @@ -0,0 +1,40 @@ +//Example 11.13
+
+clear;
+clc;
+
+printf("\tExample 11.13\n");
+
+xs=[0.55;0.5;0.425;0.31;0.225;0.105];
+xd=[0.78;0.775;0.77;0.76;0.75;0.74];
+differ=xd-xs;
+for i=1:6
+ reci(i)=1/(xd(i)-xs(i));
+end
+
+m=[xs xd differ reci];
+printf("\n xs xd (xd-xs) 1/(xd-xs)\n");
+disp(m);
+plot(xs,reci);
+xtitle('Graphical integration','xs','1/xd-xs)');
+
+//Area under the curve is calculated and is found to be 1.1
+
+//logdiv = S1/S2 = area under the curve
+logdiv=1.1;
+S1=100; //Assume
+div=exp(logdiv);
+S2=S1/div;
+Db=S1-S2; //Product obtained
+amt=xs(1)*S1-(xs(6)*S2);
+avg=amt/Db;
+
+printf("\nAverage composition is %.2f kmol\n",avg);
+
+L=4000; //latent heat
+R=2.1;
+
+h=R*L;
+printf("Heat required to produce reflux per kmol : %d kJ\n",h);
+
+//End
\ No newline at end of file |