summaryrefslogtreecommitdiff
path: root/2735/CH12/EX12.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2735/CH12/EX12.7
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 '2735/CH12/EX12.7')
-rwxr-xr-x2735/CH12/EX12.7/Ex12_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/2735/CH12/EX12.7/Ex12_7.sce b/2735/CH12/EX12.7/Ex12_7.sce
new file mode 100755
index 000000000..17d530815
--- /dev/null
+++ b/2735/CH12/EX12.7/Ex12_7.sce
@@ -0,0 +1,21 @@
+clc
+clear
+//Initialization of variables
+cp1=0.25
+T=3460 //R
+T0=946.2 //R
+T00=520 //R
+dG=1228 //Btu/lbm
+cp=0.45
+//calculations
+dqa=cp1*(T-T0)
+w=cp*dqa
+hf=cp1*(T-T00)-T00*cp1*log(T/T00)
+heat=w-hf
+eff=w/hf
+epower=w/dG
+//results
+printf("Loss of available energy = %.1f Btu/lbm mixture ",heat)
+printf("\n Efficiency of cycle = %.3f ",eff)
+printf("\n Effectiveness of overall cycle = %.2f",epower)
+disp("The answer is a bit different due to rounding off error in textbook")