summaryrefslogtreecommitdiff
path: root/1919/CH5/EX5.12/Ex5_12.sce
blob: 5a91652eb1c16ac4a17adc28010199edb5e5c1b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)