summaryrefslogtreecommitdiff
path: root/3685/CH20/EX20.2/Ex20_2.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH20/EX20.2/Ex20_2.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3685/CH20/EX20.2/Ex20_2.sce')
-rw-r--r--3685/CH20/EX20.2/Ex20_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3685/CH20/EX20.2/Ex20_2.sce b/3685/CH20/EX20.2/Ex20_2.sce
new file mode 100644
index 000000000..ea0ce7e0f
--- /dev/null
+++ b/3685/CH20/EX20.2/Ex20_2.sce
@@ -0,0 +1,19 @@
+clc
+// Given that
+// Four cylinder engine
+BP = 30 // Power developed by engine in kW
+N = 2500 // Speed in rpm
+P_m = 800 // Mean effective pressure for each cylinder in kN/m^2
+n_m = 0.8 // Mechanical efficiency
+r = 1.5 // Stroke to bore ratio
+n_b = 0.28 // Brake thermal efficiency
+c_v = 44 // Heating value of petrol in MJ/kg
+printf("\n Example 20.2\n")
+IP = BP/n_m
+d = ((IP*1000*60)/(P_m*1000*r*(%pi/4)*N*4))^(1/3)
+L = r*d
+m_f = BP/(c_v*1000*n_b)
+bsfc = m_f*3600/BP
+printf("\n Diameter of cylinder = %f cm\n Stroke of each cylinder = %f cm\n Brake specific fuel consumption = %f kg/kWh",d*10^2,L*100,bsfc)
+
+