summaryrefslogtreecommitdiff
path: root/1226/CH3/EX3.24/EX3_24.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1226/CH3/EX3.24/EX3_24.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 '1226/CH3/EX3.24/EX3_24.sce')
-rwxr-xr-x1226/CH3/EX3.24/EX3_24.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1226/CH3/EX3.24/EX3_24.sce b/1226/CH3/EX3.24/EX3_24.sce
new file mode 100755
index 000000000..82d7eb9ae
--- /dev/null
+++ b/1226/CH3/EX3.24/EX3_24.sce
@@ -0,0 +1,10 @@
+clc;funcprot(0);//EXAMPLE 3.24
+// Initialisation of Variables
+r=14;......................//Compression ratio
+Beta=1.4;................//Explosion ratio
+co=6;..................//Cut off percentage
+ga=1.4;.................//Ratio of specific heats
+//Calculation
+rho=((co/100)*(r-1))+1;...............//Cut off ratio
+etadual=1-[(1/(r^(ga-1)))*((Beta*(rho^ga))-1)*(1/((Beta-1)+(Beta*ga*(rho-1))))];............//Efficiency of dual cycle
+disp(etadual*100,"Efficiency of dual cycle:")