summaryrefslogtreecommitdiff
path: root/2837/CH19/EX19.3/Ex19_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2837/CH19/EX19.3/Ex19_3.sce')
-rwxr-xr-x2837/CH19/EX19.3/Ex19_3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2837/CH19/EX19.3/Ex19_3.sce b/2837/CH19/EX19.3/Ex19_3.sce
new file mode 100755
index 000000000..2906083e6
--- /dev/null
+++ b/2837/CH19/EX19.3/Ex19_3.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Initalization of variables
+eff=0.97
+c1=94.9 //Btu/lb
+c2=138.8 //Btu/lb
+ntee=246 //Btu/lb
+//calculations
+cwork=c1/eff
+twork=c2*eff
+net=twork-cwork
+etat=net/ntee *100
+//results
+printf("Compressor work = %.1f Btu/lb",cwork)
+printf("\n Turbine work = %.1f Btu/lb",twork)
+printf("\n Net work = %.1f Btu/lb",net)
+printf("\n Thermal efficiency = %.1f percent",etat)