summaryrefslogtreecommitdiff
path: root/632/CH7/EX7.14/example7_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /632/CH7/EX7.14/example7_14.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 '632/CH7/EX7.14/example7_14.sce')
-rwxr-xr-x632/CH7/EX7.14/example7_14.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/632/CH7/EX7.14/example7_14.sce b/632/CH7/EX7.14/example7_14.sce
new file mode 100755
index 000000000..e1d9b82ca
--- /dev/null
+++ b/632/CH7/EX7.14/example7_14.sce
@@ -0,0 +1,15 @@
+//clc()
+//the three phase temperature is first find out, which comes to be 342K, the corresponding Ps1 = 71.18, Ps2 = 30.12
+T = [342 343 348 353 363 373];
+Ps2 = [30.12 31.06 37.99 47.32 70.11 101.3];
+Ps1 = [71.18 72.91 85.31 100.5 135.42 179.14];
+P = 101.3;//kPa
+for i = 1:4
+ y1(i) = 1 - (Ps1(i))/P;
+end
+for i = 1:6
+ y2(i) = 1 - (Ps2(i))/P;
+end
+plot2d(y2,T);
+plot2d(1-y1,T,rect = [0,320,1,380]);
+xtitle('Temperature - compositon diagram','x, y (mole fraction of benzene)','Temperature')