summaryrefslogtreecommitdiff
path: root/572/CH9/EX9.7/c9_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /572/CH9/EX9.7/c9_7.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 '572/CH9/EX9.7/c9_7.sce')
-rwxr-xr-x572/CH9/EX9.7/c9_7.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/572/CH9/EX9.7/c9_7.sce b/572/CH9/EX9.7/c9_7.sce
new file mode 100755
index 000000000..12b4230c9
--- /dev/null
+++ b/572/CH9/EX9.7/c9_7.sce
@@ -0,0 +1,27 @@
+//(9.7) A regenerator is incorporated in the cycle of Example 9.4. (a) Determine the thermal efficiency for a regenerator effectiveness of 80%. (b) Plot the thermal efficiency versus regenerator effectiveness ranging from 0 to 80%.
+
+//solution
+
+
+//part(a)
+etareg = .8 //regenerator effectiveness of 80%.
+//from example 9.4
+h1 = 300.19 //in kj/kg
+h2 = 579.9 //in kj/kg
+h3 = 1515.4 //in kj/kg
+h4 = 808.5 //in kj/kg
+
+hx = etareg*(h4-h2)+h2 //in kj/kg
+eta = ((h3-h4)- (h2-h1))/(h3-hx) //thermal efficiency
+printf('the thermal efficiency is: %f',eta)
+
+//part(b)
+etareg = linspace(0,.8,50)
+for i= 1:50
+ hx(1,i) = etareg(1,i)*(h4-h2)+h2
+end
+for i = 1:50
+ eta(1,i) = ((h3-h4)- (h2-h1))/(h3-hx(1,i))
+end
+plot(etareg,eta)
+xtitle("","Regenerator effectiveness","Thermal efficiency") \ No newline at end of file