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 /2735/CH12/EX12.8 | |
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 '2735/CH12/EX12.8')
-rwxr-xr-x | 2735/CH12/EX12.8/Ex12_8.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2735/CH12/EX12.8/Ex12_8.sce b/2735/CH12/EX12.8/Ex12_8.sce new file mode 100755 index 000000000..84c738348 --- /dev/null +++ b/2735/CH12/EX12.8/Ex12_8.sce @@ -0,0 +1,23 @@ +clc
+clear
+//Initialization of variables
+p1=400 //psia
+t1=600 //F
+h1=1306.9 //Btu/lbm
+b1=480.9 //Btu/lbm
+p2=50 //psia
+h2=1122 //Btu/lbm
+h3=1169.5 //Btu/lbm
+b3=310.9 //Btu/lbm
+//calculations
+disp("All the values are obtained from Mollier chart,")
+dw13=h1-h3
+dw12=h1-h2
+dasf=b3-b1
+etae=dw13/dw12
+eta=abs(dw13/dasf)
+dq=dw13+dasf
+//results
+printf("Engine efficiency = %.1f percent",etae*100)
+printf("\n Effectiveness = %.1f percent",eta*100)
+printf("\n Loss of available energy = %.1f Btu/lbm",dq)
|