summaryrefslogtreecommitdiff
path: root/1808/CH3/EX3.11/Chapter3_Exampl11.sce
diff options
context:
space:
mode:
Diffstat (limited to '1808/CH3/EX3.11/Chapter3_Exampl11.sce')
-rw-r--r--1808/CH3/EX3.11/Chapter3_Exampl11.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/1808/CH3/EX3.11/Chapter3_Exampl11.sce b/1808/CH3/EX3.11/Chapter3_Exampl11.sce
new file mode 100644
index 000000000..09e1637ef
--- /dev/null
+++ b/1808/CH3/EX3.11/Chapter3_Exampl11.sce
@@ -0,0 +1,22 @@
+clc
+clear
+//INPUT DATA
+d=0.26;//bore of the engine in m
+L=0.38;//stroke of the engine in m
+vc=0.0025;//clearence volume in m^3
+p1=1;//pressure in bar
+t1=313;//temperature in K
+p3=25;//pressure in bar
+v12=9.07;//volume in m^3
+
+//CALCULATIONS
+vs=(3.14*d^2*L)/4;//swept volume in m^3
+Rc=((vs+vc)/vc);//compression ratio
+no=(1-((1/Rc)^(1.4-1)))*100;//Air standard efficiency of the cycle
+p2=p1*(v12^1.4);//pressure in bar
+Rp=p3/p2;//compression pressure
+pm=(p1*Rc*((Rc^(1.4-1)-1)*(Rp-1)))/((1.4-1)*(Rc-1));//mean effective pressure in bar
+
+//OUTPUT
+printf('(a)The air standard efficiency of the cycle is %3.1f percentage \n (b)The mean effective pressure is %3.4f bar',no,pm)
+