summaryrefslogtreecommitdiff
path: root/443/CH17/EX17.10/17_10.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /443/CH17/EX17.10/17_10.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '443/CH17/EX17.10/17_10.sce')
-rwxr-xr-x443/CH17/EX17.10/17_10.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/443/CH17/EX17.10/17_10.sce b/443/CH17/EX17.10/17_10.sce
new file mode 100755
index 000000000..e9bf7ddff
--- /dev/null
+++ b/443/CH17/EX17.10/17_10.sce
@@ -0,0 +1,19 @@
+pathname=get_absolute_file_path('17_10.sce')
+filename=pathname+filesep()+'17_10_data.sci'
+exec(filename)
+//Air consumption
+ma=(Va/ta)*Pa
+//Fuel consumption
+mf=(Vf/tf)*Pf
+//Air fuel ratio
+AF=ma/mf
+//Power output
+P=(W*N)/Dc
+//Brake specific fuel consumption
+bsfc=(mf*3600*1000)/P
+//Indicated thermal efficiency
+nith=P/(mf*CV)*100
+printf("\n\nRESULTS\n\n")
+printf("mf:%f",mf)
+printf("\nBrake specific fuel consumption:%f\n",bsfc)
+printf("\nIndicated thermal efficiency:%f\n",nith)