summaryrefslogtreecommitdiff
path: root/3821/CH14/EX14.5/Example14_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3821/CH14/EX14.5/Example14_5.sce')
-rw-r--r--3821/CH14/EX14.5/Example14_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3821/CH14/EX14.5/Example14_5.sce b/3821/CH14/EX14.5/Example14_5.sce
new file mode 100644
index 000000000..16faa5a57
--- /dev/null
+++ b/3821/CH14/EX14.5/Example14_5.sce
@@ -0,0 +1,20 @@
+////Chapter No 14 Air Standard Cycles
+////Example No 14.5 Page No 308
+///Find compression ratio
+///Input data
+clc;
+clear;
+P1=1; //Isentropic Compression in bar
+P2=20; //Isentropic Compression in bar
+//Consider air as the working fluid therefore
+gamma1=1.4;
+
+
+//Calculation
+r=(P2/P1)**(1/gamma1); //Isentropic process
+eta=100*(1-(1/(r^(gamma1-1)))); //Otto cycle air standard effeciency in %
+
+
+//Output
+printf('compression ratio= %f \n ',r);
+printf('standard efficiency= %f percent \n',eta);