summaryrefslogtreecommitdiff
path: root/2507/CH5/EX5.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2507/CH5/EX5.6
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 '2507/CH5/EX5.6')
-rwxr-xr-x2507/CH5/EX5.6/Ex5_6.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2507/CH5/EX5.6/Ex5_6.sce b/2507/CH5/EX5.6/Ex5_6.sce
new file mode 100755
index 000000000..a8f7e7820
--- /dev/null
+++ b/2507/CH5/EX5.6/Ex5_6.sce
@@ -0,0 +1,16 @@
+clc
+clear
+printf("Example 5.6 | Page number 126 \n\n");
+// Calculate work input to compressor
+
+//Given Data
+p1 = 1e5 // N/m^2 //inlet pressure
+v1 = 0.08 //m^3/kg // specific volume at inlet
+p2 = 7e5 // N/m^2 //exit pressure
+v2 = 0.016 // m^3/kg //specific volume at exit
+u1 = 48 // kJ/kg // internal energy at inlet
+u2 = 200 // kJ/kg // internal energy at exit
+Q = -120 // kJ/kg // heat loss
+//Solution
+Wc = ((u2 - u1) + (p2*v2 - p1*v1)*.001 - Q)*-1 // kJ/kg // work input to compressor
+printf("Work input to compressor (Wc) = %.1f kJ/kg",Wc)