summaryrefslogtreecommitdiff
path: root/2837/CH19/EX19.1/Ex19_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH19/EX19.1/Ex19_1.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 '2837/CH19/EX19.1/Ex19_1.sce')
-rwxr-xr-x2837/CH19/EX19.1/Ex19_1.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/2837/CH19/EX19.1/Ex19_1.sce b/2837/CH19/EX19.1/Ex19_1.sce
new file mode 100755
index 000000000..02112e650
--- /dev/null
+++ b/2837/CH19/EX19.1/Ex19_1.sce
@@ -0,0 +1,32 @@
+clc
+clear
+//Initalization of variables
+n=1.4
+t1=540 //R
+tmax=1200 //F
+tmax2=1500 //F
+pr=5
+cp=0.24
+//calculations
+t2=t1*(pr)^((n-1)/n)
+work=cp*(t2-t1)
+t4=(tmax+460) /pr^((n-1)/n)
+twork=cp*(tmax+460-t4)
+net=twork-work
+eff=1- 1/pr^((n-1)/n)
+Qs=cp*(tmax+460-t2)
+ett=net/Qs *100
+t42=(tmax2+460)/pr^((n-1)/n)
+twork2=cp*(tmax2+460-t42)
+net2=twork2-work
+Qs2=cp*(tmax2+460-t2)
+eff3=net2/Qs2 *100
+//results
+printf("Compressor work = %.1f Btu/lb",work)
+printf("\n Turbine work = %.1f Btu/lb",twork)
+printf("\n Net work = %.1f Btu/lb",net)
+printf("\n Thermal efficiency = %.1f percent",eff*100)
+printf("\n In case 2, Thermal efficiency = %.1f percent",ett)
+printf("\n In case 2, Turbine work = %.1f Btu/lb",twork2)
+printf("\n In case 2, Net work = %.1f Btu/lb",net2)
+printf("\n In case 3, Thermal efficiency = %.1f percent,",eff3)