summaryrefslogtreecommitdiff
path: root/3831/CH10/EX10.7/Ex10_7.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3831/CH10/EX10.7/Ex10_7.sce
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/CH10/EX10.7/Ex10_7.sce')
-rw-r--r--3831/CH10/EX10.7/Ex10_7.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/3831/CH10/EX10.7/Ex10_7.sce b/3831/CH10/EX10.7/Ex10_7.sce
new file mode 100644
index 000000000..fc7c2032c
--- /dev/null
+++ b/3831/CH10/EX10.7/Ex10_7.sce
@@ -0,0 +1,31 @@
+// Example 10_7
+clc;funcprot(0);
+// Given data
+p_1=5000;// psia
+T_1=1000;// °F
+V_1=50.0;// ft/s
+V_2=300.0;// ft/s
+x_0=0.00;// The quality of steam
+T_0=70.0;// °F
+g_c=32.174;// lbm.ft/lbf.s^2
+g=32.174;// ft/s^2
+
+// Calculation
+// Station 1
+p_1=5000;// psia
+T_1=1000;// °F
+h_1=1363.4;// Btu/lbm
+s_1=1.3990;// Btu/lbm.R
+// Station 2
+p_2=14.696;// psia
+h_2=h_1+((V_1^2-V_2^2)/(2*g_c*778.16));// Btu/lbm
+h_0=38.1;// Btu/lbm
+s_0=0.0746;// Btu/lbm.R
+Z_1=0;// ft
+Z_2=Z_1;// ft
+T_2=655;// °F
+s_2=1.9981;// Btu/lbm.R
+a_f1=(h_1-h_0)-((T_0+459.67)*(s_1-s_0))+((V_1^2)/(2*g_c*778.16))+((g*Z_1)/g_c);// Btu/lbm
+a_f2=(h_2-h_0)-((T_0+459.67)*(s_2-s_0))+((V_2^2)/(2*g_c*778.16))+((g*Z_2)/g_c);// Btu/lbm
+Ibym=a_f1-a_f2;// Btu/lbm
+printf("\nThe specific flow availabilities at the inlet and outlet of the crack,a_f1=%3.0f Btu/lbm & a_f2=%3.0f Btu/lbm \nThe irreversibility per unit mass of steam exiting the crack,I/m=%3.0f Btu/lbm",a_f1,a_f2,Ibym); \ No newline at end of file