diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /172/CH8/EX8.3/ex3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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 |