summaryrefslogtreecommitdiff
path: root/3831/CH9/EX9.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH9/EX9.2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3831/CH9/EX9.2')
-rw-r--r--3831/CH9/EX9.2/Ex9_2.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3831/CH9/EX9.2/Ex9_2.sce b/3831/CH9/EX9.2/Ex9_2.sce
new file mode 100644
index 000000000..4b97626b2
--- /dev/null
+++ b/3831/CH9/EX9.2/Ex9_2.sce
@@ -0,0 +1,23 @@
+// Example 9_2
+clc;funcprot(0);
+// Given data
+m=0.2000;// lbm/s
+// Station 1
+p_1=14.7;// psia
+T_1=50.00;// °F
+// Station 2
+p_2=95.00;// psia
+D_1=1.000;// The inlet diameter of the nozzle in m
+D_2=0.2500;// The outlet diameter of the nozzle in m
+c=1.0;// Btu/lbm.R
+g_c=32.174;// lbm.ft/(lbf.s^2)
+
+// Calculation
+v_f=0.01602;// ft^3/lbm
+v=v_f;// ft^3/lbm
+V_1=(4*m*v*144)/(%pi*D_1^2);// ft/s
+V_2=V_1*(D_1/D_2)^2;// ft/s
+T_2=(T_1+459.67)+(v*(((p_2-p_1)*144)/(c*778.17)))-((V_2^2-V_1^2)/(2*c*g_c*778.17));// R
+S_p=m*c*log(T_2/(T_1+459.7));// Btu/(s.R)
+S_p=S_p*778.17;// ft.lbf/(s.R)
+printf("\nThe rate of entropy production,S_p=%0.4f ft.lbf/(s.R)",S_p);