diff options
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')
|