diff options
Diffstat (limited to '2006/CH6/EX6.18/ex6_18.sce')
-rwxr-xr-x | 2006/CH6/EX6.18/ex6_18.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/2006/CH6/EX6.18/ex6_18.sce b/2006/CH6/EX6.18/ex6_18.sce new file mode 100755 index 000000000..5384b8060 --- /dev/null +++ b/2006/CH6/EX6.18/ex6_18.sce @@ -0,0 +1,9 @@ +clc;
+TA=323;// Temperature at section A in kelvin
+PA=125; // Pressure at section A in kPa
+TB=287;// Temperature at section B in kelvin
+PB=100; // Pressure at section B in kPa
+Cpo=1.0035; // Specific heat at constant pressure in kJ/kg K
+R=0.287; // characteristic gas constant of air in kJ/kg K
+SBA=(Cpo*log (TB/TA))-(R*log (PB/PA)); // Change in entropy
+disp("Hence SA>SB. Therefore B to A","kJ/kg",SBA,"Change in entropy from B to A =");
|