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.20/1_20.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.20/1_20.sce')
-rwxr-xr-x | 2063/CH1/EX1.20/1_20.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/2063/CH1/EX1.20/1_20.sce b/2063/CH1/EX1.20/1_20.sce new file mode 100755 index 000000000..5cc8897a8 --- /dev/null +++ b/2063/CH1/EX1.20/1_20.sce @@ -0,0 +1,15 @@ +clc
+clear
+//Input data
+r=16;//Compression ratio of diesel engine
+r1=1.4;//Isentropic ratio
+
+//Calculations
+rho1=1+(r-1)*(6/100);//Cutoff ratio at 6% of stroke
+rho2=1+(r-1)*(9/100);//Cutoff ratio at 9% of stroke
+n1=(1-(1/r^(r1-1))*(1/r1)*(rho1^r1-1)/(rho1-1))*100;//Efficiency of the cycle at 6% of the stroke in percent
+n2=(1-(1/r^(r1-1))*(1/r1)*(rho2^r1-1)/(rho2-1))*100;//Efficiency of the cycle at 9% of the stroke in percent
+L=n1-n2;//The loss in efficiency in percent
+
+//Output
+printf('The loss in efficiency is %3.2f percent',L)
|