summaryrefslogtreecommitdiff
path: root/2063/CH1/EX1.7/1_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2063/CH1/EX1.7/1_7.sce')
-rwxr-xr-x2063/CH1/EX1.7/1_7.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2063/CH1/EX1.7/1_7.sce b/2063/CH1/EX1.7/1_7.sce
new file mode 100755
index 000000000..8a9f60370
--- /dev/null
+++ b/2063/CH1/EX1.7/1_7.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Input data
+r=5.5;//Compression ratio of an engine working on the otto cycle
+Q=250;//Heat supplied during constant volume in kJ
+N=500;//Engine operating speed in rpm
+r1=1.4;//Isentropic ratio
+
+//Calculations
+n=(1-(1/r)^(r1-1))*100;//Otto cycle efficiency in percent
+W=Q*(n/100);//Work done per cycle in kJ
+P=W*(N/60);//Work done per second i.e., Power developed in kJ/s or kW
+
+//Output data
+printf('Ideal power developed by the engine is %3.0f kW',P)