summaryrefslogtreecommitdiff
path: root/2870/CH5/EX5.6/Ex5_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH5/EX5.6/Ex5_6.sce')
-rwxr-xr-x2870/CH5/EX5.6/Ex5_6.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2870/CH5/EX5.6/Ex5_6.sce b/2870/CH5/EX5.6/Ex5_6.sce
new file mode 100755
index 000000000..1c9435de4
--- /dev/null
+++ b/2870/CH5/EX5.6/Ex5_6.sce
@@ -0,0 +1,19 @@
+clc;clear;
+//Example 5.6
+
+//given data
+T1=280;
+P1=100;
+m=0.02;
+qout=16;
+P2=600;
+T2=400;
+
+//from Table A-17
+h1=280.13;
+h2=400.98;
+
+//calculations
+// Ein - Eout = dEsystem / dt
+Win=m*qout+m*(h2-h1);
+disp(Win,'the input power of compressor in kW')