summaryrefslogtreecommitdiff
path: root/2870/CH7/EX7.19
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2870/CH7/EX7.19
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 '2870/CH7/EX7.19')
-rwxr-xr-x2870/CH7/EX7.19/Ex7_19.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2870/CH7/EX7.19/Ex7_19.sce b/2870/CH7/EX7.19/Ex7_19.sce
new file mode 100755
index 000000000..24f5ff685
--- /dev/null
+++ b/2870/CH7/EX7.19/Ex7_19.sce
@@ -0,0 +1,21 @@
+clc;clear;
+//Example 7.19
+
+//given data
+m=50;
+T1=500;
+T2=285;
+
+//from Table A-3
+Cavg=0.45;
+
+//calculations
+dSiron=m*Cavg*log(T2/T1);
+disp(dSiron,'entropy change of the iron block in kJ/K');
+// Ein - Eout = dEsystem
+Qout=m*Cavg*(T1-T2);
+dSlake=Qout/T2;
+disp(dSlake,'entropy change of the lake in kJ/K');
+// Sin - Sout + Sgen = dSsystem/dt
+Sgen=(Qout/T2)+dSiron;
+disp(Sgen,'entropy change in the process in kJ/K')