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 /1394/CH14/EX14.5.1/Ex14_5_1.sce | |
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 '1394/CH14/EX14.5.1/Ex14_5_1.sce')
-rwxr-xr-x | 1394/CH14/EX14.5.1/Ex14_5_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1394/CH14/EX14.5.1/Ex14_5_1.sce b/1394/CH14/EX14.5.1/Ex14_5_1.sce new file mode 100755 index 000000000..16ac7a3f1 --- /dev/null +++ b/1394/CH14/EX14.5.1/Ex14_5_1.sce @@ -0,0 +1,16 @@ + +clc
+//initialization of variables
+F = 5 //kg feed
+S = 2 // kg solvent
+E = F-S // kg extract
+W = 1 // kg waste
+EG = 80 // ppm
+y0 = (100-99)/100 // mole fraction of gold left
+y1 = y0*EG*W/S // concentration in raffinate
+//Calculations
+xN = (EG*W - y1*S)/E // solvent concentration
+xNminus1 = ((xN*(E+S)) - EG*W)/F//feed stage balance
+N = 1 + ((log((xN-xNminus1)/(y1))/log(F/S)))//numner of stages including feed stage
+//Results
+printf("The number of stages including feed stage is %.f",N)
|