diff options
Diffstat (limited to '2870/CH7/EX7.21/Ex7_21.sce')
-rwxr-xr-x | 2870/CH7/EX7.21/Ex7_21.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2870/CH7/EX7.21/Ex7_21.sce b/2870/CH7/EX7.21/Ex7_21.sce new file mode 100755 index 000000000..d77693dd3 --- /dev/null +++ b/2870/CH7/EX7.21/Ex7_21.sce @@ -0,0 +1,14 @@ +clc;clear;
+//Example 7.21
+
+//given data
+T=100+273;//in K
+Q=-600;
+Tb=25+273;//in K
+
+//calculation
+dSsys=Q/T;
+disp(dSsys,'entropy change of water in kJ/K');
+// Sin - sout + Sgen = dSsystem
+Sgen= -Q/Tb + dSsys;
+disp(Sgen,'total entropy generation in kJ/K')
|