summaryrefslogtreecommitdiff
path: root/2762/CH1/EX1.5.2/1_5_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2762/CH1/EX1.5.2/1_5_2.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 '2762/CH1/EX1.5.2/1_5_2.sce')
-rwxr-xr-x2762/CH1/EX1.5.2/1_5_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2762/CH1/EX1.5.2/1_5_2.sce b/2762/CH1/EX1.5.2/1_5_2.sce
new file mode 100755
index 000000000..aa35a11af
--- /dev/null
+++ b/2762/CH1/EX1.5.2/1_5_2.sce
@@ -0,0 +1,19 @@
+//Transport Processes and Seperation Process Principles
+//Chapter 1
+//Example 1.5-2
+//Introduction to engineering principles and units
+//given data
+//Basis: feed stream is 1000 kg/h
+//component balance for Pottasium Nitrate: 1000(20/100)=W(0)+P(96/100)
+P=1000*(0.2)*(100/96);//P is the outlet rate of KNO3 crystals
+
+//overall balance for a crystallizer: S-R=P
+//KNO3 balance on crystallizer: S(50/100)-R(37.5/100)=P(96/100)
+//solving 2 equations using matrix operations
+A=[1 -1;0.5 -0.375];
+B=[P;0.96*P];
+x=inv(A)*B;
+S=x(1,1);
+R=x(2,1);
+mprintf(" the recycle R %f kg/h",R)
+mprintf("the rate of crystals getting out of crystallizer %f kg/h",S)