summaryrefslogtreecommitdiff
path: root/3685/CH9/EX9.4/Ex9_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH9/EX9.4/Ex9_4.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 '3685/CH9/EX9.4/Ex9_4.sce')
-rw-r--r--3685/CH9/EX9.4/Ex9_4.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3685/CH9/EX9.4/Ex9_4.sce b/3685/CH9/EX9.4/Ex9_4.sce
new file mode 100644
index 000000000..6ec5c98d9
--- /dev/null
+++ b/3685/CH9/EX9.4/Ex9_4.sce
@@ -0,0 +1,26 @@
+clc
+// for T = 350 degree
+T1 = 350 // Temperature in degree Celsius
+v1 = 0.2003 // specific volume in m^3/kg
+h1 = 3149.5 // Specific enthalpy in kJ/kgK
+s1 = 7.1369 // Entropy in kJ/kgK
+// for T = 400 degree
+T2 = 400 // Temperature in degree Celsius
+v2 = 0.2178 // specific volume in m^3/kg
+h2 = 3257.5 // Specific enthalpy in kJ/kgK
+s2 = 7.3026// Entropy in kJ/kgK
+// Interpolation for T = 380
+
+printf("\n Example 9.4")
+T = [T1 T2]
+v = [v1 v2]
+h = [h1 h2]
+s = [s1 s2]
+v3 = interpln([T;v],380)
+h3 = interpln([T;h],380)
+s3 = interpln([T;s],380)
+
+printf("\n The entropy, enthalpy and volume of steam at 1.4MPa and 380 degree are \n %f kJ/kg K, %fkJ/kg, %fm3/kg respectively",s3,h3,v3)
+//The answers vary due to round off error
+
+