summaryrefslogtreecommitdiff
path: root/1919/CH5/EX5.12/Ex5_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1919/CH5/EX5.12/Ex5_12.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1919/CH5/EX5.12/Ex5_12.sce')
-rwxr-xr-x1919/CH5/EX5.12/Ex5_12.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1919/CH5/EX5.12/Ex5_12.sce b/1919/CH5/EX5.12/Ex5_12.sce
new file mode 100755
index 000000000..5a91652eb
--- /dev/null
+++ b/1919/CH5/EX5.12/Ex5_12.sce
@@ -0,0 +1,24 @@
+
+// Theory and Problems of Thermodynamics
+// Chapter 5
+//Second Law of Thermodynamcis
+// Example 12
+
+clear ;clc;
+
+//Given data
+h_sf = 333.43 // the latent heat of fusion at 0 *C in kJ/kg
+h_fg = 2257 // the latent heat of fusion at 100 *C in kJ/kg
+T1 = 273.15 // temperature (K) of 1kg ice to be converted into liquid
+T2 = 373.15 // temperature (K) of 1kg liquid water to vaporize
+
+
+// Calculations
+// As we know the entropy change does not depend upon the path followed
+del_s_0 = h_sf/T1 // entrophy change for converting ice to water
+del_s_100 = h_fg/T2 // entrophy change for converting water to vaper
+
+// Output Results
+mprintf('(a) The entrophy change for converting 1kg ice at 0 degree C to liquid water at 0 degree C = %5.4f kJ/kg K' ,del_s_0)
+mprintf('\n (b) The entrophy change for converting 1kg liquid water at 1000 degree C to vaporize completely = %5.4f kJ/kg K' ,del_s_100)
+