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 /2168/CH3/EX3.20/Chapter3_example20.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 '2168/CH3/EX3.20/Chapter3_example20.sce')
-rwxr-xr-x | 2168/CH3/EX3.20/Chapter3_example20.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2168/CH3/EX3.20/Chapter3_example20.sce b/2168/CH3/EX3.20/Chapter3_example20.sce new file mode 100755 index 000000000..f05d599c1 --- /dev/null +++ b/2168/CH3/EX3.20/Chapter3_example20.sce @@ -0,0 +1,19 @@ +clc
+clear
+//Input data
+T=[50+273,345+273]//Temperatures at the beginning and end of compression in K
+g=1.4//ratio of specific heats
+IHP=25//Indicated horse power in h.p
+m=5.44//Mass of fuel consumed per hour in kg
+CV=10300//Calorific value in kcal/kg
+
+//Calculations
+na=(1-(T(1)/T(2)))*100//Air standard efficiency in percent
+r=(T(2)/T(1))^(1/(g-1))//Compression ratio
+qIHP=(IHP*4500)/427//Heat equivalent of I.H.P in kcal/min
+q=(m*CV)/60//Heat supplied per minute in kcal/min
+Ith=(qIHP/q)*100//Indicated thermal efficiency in percent
+nr=(Ith/na)*100//Efficiency ratio
+
+//Output
+printf('The air standard efficiency is %3.1f percent \n The compression ratio is %3.2f \n Indicated thermal efficiency is %3.1f percent \n Efficiency ratio is %3.1f percent',na,r,Ith,nr)
|