diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH19/EX19.12 | |
download | Scilab-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.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)
|