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 /2063/CH1/EX1.12/1_12.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 '2063/CH1/EX1.12/1_12.sce')
-rwxr-xr-x | 2063/CH1/EX1.12/1_12.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2063/CH1/EX1.12/1_12.sce b/2063/CH1/EX1.12/1_12.sce new file mode 100755 index 000000000..e7970b5b8 --- /dev/null +++ b/2063/CH1/EX1.12/1_12.sce @@ -0,0 +1,12 @@ +clc
+clear
+r=15;//Compression ratio of a diesel engine
+Q=5;//Heat supplied upto 5 percent of the stroke
+r1=1.4;//Isentropic ratio
+
+//Calculations
+p=1+(Q/100)*(r-1);//Cut off ratio
+n=(1-((1/r^(r1-1)*(p^r1-1)/(r1*(p-1)))))*100;//Efficiency of diesel cycle in percent
+
+//Output
+printf('Air standard efficiency of the diesel cycle is %3.2f percent',n)
|