diff options
Diffstat (limited to '172/CH8/EX8.3/ex3.sce')
-rwxr-xr-x | 172/CH8/EX8.3/ex3.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/172/CH8/EX8.3/ex3.sce b/172/CH8/EX8.3/ex3.sce new file mode 100755 index 000000000..15ab12073 --- /dev/null +++ b/172/CH8/EX8.3/ex3.sce @@ -0,0 +1,11 @@ +//example 3
+//entropy change
+clear
+clc
+C=4.184 // specific heat of water in kJ/kg-K
+T1=20 //initial temperature of water in celsius
+T2=90 //final temperature of water in celsius
+dS1=C*log((T2+273.2)/(T1+273.2)) //change in entropy in kJ/kg-K
+dS2=1.1925-0.2966 //in kJ/kg-K using steam tables
+printf("\n hence,change in entropy assuming constant specific heat is dS1=%.4f kJ/kg-K.\n",dS1)
+printf("\n using steam table is dS2=%.4f kJ/kg-K.\n",dS2)
\ No newline at end of file |