summaryrefslogtreecommitdiff
path: root/3843/CH6/EX6.9/Ex6_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3843/CH6/EX6.9/Ex6_9.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 '3843/CH6/EX6.9/Ex6_9.sce')
-rw-r--r--3843/CH6/EX6.9/Ex6_9.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3843/CH6/EX6.9/Ex6_9.sce b/3843/CH6/EX6.9/Ex6_9.sce
new file mode 100644
index 000000000..ed478949d
--- /dev/null
+++ b/3843/CH6/EX6.9/Ex6_9.sce
@@ -0,0 +1,23 @@
+// Example 6_9
+clc;funcprot(0);
+// Given data
+m_1=4;// kg/s
+m_2=0.5;// kg/s
+T_1=45;// °C
+T_2=250;// °C
+P=600;// kPa
+
+// Calculation
+m_3=m_2+m_1;// kg/s
+// From steam tables
+h_2=2957.2;// kJ/kg
+h_1=188.4;// kJ/kg
+h_3=((m_2*h_2)+(m_1*h_1))/m_3;// kJ/kg
+// The exiting water temperature is interpolated from the saturated steam tables
+h_f=496;// kJ/kg
+T_3=(((496-461.3)/(503.7-461.3))*(110-100))+110;// The exiting water temperature in °C
+s_3=1.508;// kJ/kg.K
+s_2=7.182;// The entropy of the entering superheated steam in kJ/kg.K
+s_1=0.639;// The entering entropy of the subcooled water in kJ/kg.K
+S_prod=(m_3*s_3)-(m_2*s_2)-(m_1*s_1);// kW/K
+printf("\nThe rate of entropy production,S_prod=%0.3f kW/K",S_prod);