diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /443/CH1/EX1.4/1_4.sce | |
download | Scilab-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/CH1/EX1.4/1_4.sce')
-rwxr-xr-x | 443/CH1/EX1.4/1_4.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/443/CH1/EX1.4/1_4.sce b/443/CH1/EX1.4/1_4.sce new file mode 100755 index 000000000..793ab4fd8 --- /dev/null +++ b/443/CH1/EX1.4/1_4.sce @@ -0,0 +1,25 @@ +pathname=get_absolute_file_path('1_4.sce')
+filename=pathname+filesep()+'1_4_data.sci'
+exec(filename)
+//Total volume per cylinder(in cc)
+Vtot=Vall/n
+//swept volume per cylinder(in cc)
+Vs=Vtot*(Rag/Rc)
+//volume of air taken per cycle(in cc)
+Vair=nv*Vs
+//volume of gas taken per cycle(in cc)
+Vgas=Vair/Rag
+//energy supplied per cylinder(in kJ)
+E=Vgas*10^-6*34*10^3
+//energy supplied per cylinder per second(in kJ)
+E1=bp/(nth*nm*4)
+//speed of engine(in rpm)
+N=(E1*120)/E
+printf("\n\nRESULTS\n\n")
+printf("\ntotal volume swept:%f\n",Vtot)
+printf("\nswept volume per cylinder:%f\n",Vs)
+printf("\nvolume of air taken in per cycle:%f\n",Vair)
+printf("\nvolume of gas taken in per cycle:%f\n",Vgas)
+printf("\nenergy supplied per cylinder:%f\n",E)
+printf("\nenergy supplied per cylinder per second:%f\n",E1)
+printf("\nspeed of the engine:%f\n",N)
\ No newline at end of file |