summaryrefslogtreecommitdiff
path: root/2870/CH7/EX7.17/Ex7_17.sce
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.17/Ex7_17.sce
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.17/Ex7_17.sce')
-rwxr-xr-x2870/CH7/EX7.17/Ex7_17.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2870/CH7/EX7.17/Ex7_17.sce b/2870/CH7/EX7.17/Ex7_17.sce
new file mode 100755
index 000000000..9f6f5685d
--- /dev/null
+++ b/2870/CH7/EX7.17/Ex7_17.sce
@@ -0,0 +1,16 @@
+clc;clear;
+//Example 7.17
+
+//given data
+Qin=1035;
+Tin=20+273;//in K
+Qout=Qin;
+Tout=5+273;//in K
+
+//calculations
+// Sin - Sout + Sgen = dSsystem/dt
+Sgen=(Qout/Tout)-(Qin/Tin);
+disp(Sgen,'entropy generation in the wall in W/K');
+Ts1=300;Ts2=273;//Boundary temperatures
+Sgen=(Qout/Ts2)-(Qin/Ts1);
+disp(Sgen,'total entropy generation in W/K');