summaryrefslogtreecommitdiff
path: root/1808/CH1/EX1.23/Chapter1_Example23.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1808/CH1/EX1.23/Chapter1_Example23.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 '1808/CH1/EX1.23/Chapter1_Example23.sce')
-rw-r--r--1808/CH1/EX1.23/Chapter1_Example23.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1808/CH1/EX1.23/Chapter1_Example23.sce b/1808/CH1/EX1.23/Chapter1_Example23.sce
new file mode 100644
index 000000000..bcb75693c
--- /dev/null
+++ b/1808/CH1/EX1.23/Chapter1_Example23.sce
@@ -0,0 +1,23 @@
+clc
+clear
+//INPUT DATA
+Vs=1.5*10^-3;//capacity of cylinder in m^3
+N=3000;//speed in rpm
+BP=48;//break power in kW
+nv=0.92;//volumetric efficiency in percentage
+P=101.325;//atmospheric pressure in kPa
+Ra=0.287;//gas constant
+Ta=303;//atm.temperature in K
+x=21;//airfuel ratio
+
+
+//CALCULATIONS
+Roa=(P/(Ra*Ta));//Density of air in kg/m^3
+ma=(nv*Roa*Vs*N/(2*60));//mass of air in kg/s
+mf=ma/x;//mass of fuel in kg/s
+bsfc=mf*3600/BP;//Brake specific fuel consumption in kg/kWh
+me=ma+mf;;//mass rate of exhaust flow in kg/s
+bpo=(BP/Vs)/1000;//Brake output per displacement in kW/litres
+
+//OUTPUT
+printf('(i)Rate of air flowinto engine %3.5f kg/s \n (ii)Brake specific fuel consumption is %3.3f kg/kWh \n (iii)mass rate of exhaust flow is %3.5f kg/s \n (iv)Brake output per displacement is %3.i kW/litres',ma,bsfc,me,bpo)