diff options
Diffstat (limited to '2837/CH19/EX19.12')
-rwxr-xr-x | 2837/CH19/EX19.12/Ex19_12.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2837/CH19/EX19.12/Ex19_12.sce b/2837/CH19/EX19.12/Ex19_12.sce new file mode 100755 index 000000000..50de73b37 --- /dev/null +++ b/2837/CH19/EX19.12/Ex19_12.sce @@ -0,0 +1,24 @@ +clc
+clear
+//Initalization of variables
+n=1.4
+t1=540 //R
+tmax=1500 //F
+pr=5
+cp=0.24
+p1=14 //psia
+p3=70 //psia
+w2=75.9 //Btu/lb
+Qa=265 //Btu/lb
+//calculations
+pint=p1*sqrt(pr)
+t6=(tmax+460)/(p3/pint)^((n-1)/n)
+t8=(tmax+460)/(pint/p1)^((n-1)/n)
+work=cp*(tmax+460-t6)
+w22=2*work
+net=w22-w2
+Qb=cp*(tmax+460-t6)
+Qt=Qa+Qb
+eta=net/Qt*100
+//results
+printf("Thermal efficiency = %.1f percent",eta)
|