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 /2870/CH5/EX5.9/Ex5_9.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 '2870/CH5/EX5.9/Ex5_9.sce')
-rwxr-xr-x | 2870/CH5/EX5.9/Ex5_9.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2870/CH5/EX5.9/Ex5_9.sce b/2870/CH5/EX5.9/Ex5_9.sce new file mode 100755 index 000000000..43aacd0dd --- /dev/null +++ b/2870/CH5/EX5.9/Ex5_9.sce @@ -0,0 +1,24 @@ +clc;clear;
+//Example 5.9
+
+//given data
+T1=140;
+T2=50;
+T3=110;
+P=20;
+
+//for a compressed liq at given temp
+h1=107.99;
+h2=18.07;
+h3=78.02;
+
+//calculations
+//Mass balance min = mout So, m1+m2 = m3
+//Energy balance Ein = Eout So, m1*h1 + m2*h2 = m3*h3
+//combining realations
+//m1*h1 + m2*h2 = (m1+m2)*h3
+//dividing by m2 and y=m1/m2
+//we get, yh1 + h2 = (y+1)*h3
+y=(h3-h2)/(h1-h3);
+y=round(y);
+disp(y,'the ratio of mass flow rates')
|