summaryrefslogtreecommitdiff
path: root/2837/CH20/EX20.1/Ex20_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2837/CH20/EX20.1/Ex20_1.sce')
-rwxr-xr-x2837/CH20/EX20.1/Ex20_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2837/CH20/EX20.1/Ex20_1.sce b/2837/CH20/EX20.1/Ex20_1.sce
new file mode 100755
index 000000000..7a26d3ac2
--- /dev/null
+++ b/2837/CH20/EX20.1/Ex20_1.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Initalization of variables
+Qs=825.1 //Btu/lb
+ds=0.9588
+t1=101.74 //F
+th=400.95 //F
+//calculations
+Qr=ds*(t1+459.69)
+work=Qs-Qr
+eta=work/Qs*100
+eta2=(th-t1)/(th+459.69) *100
+//results
+printf("In case 1, Thermal efficiency = %.2f percent",eta)
+printf("\n In case 2, Thermal efficiency = %.2f percent",eta2)