summaryrefslogtreecommitdiff
path: root/2168/CH5/EX5.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2168/CH5/EX5.2
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 '2168/CH5/EX5.2')
-rwxr-xr-x2168/CH5/EX5.2/Chapter5_example2.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2168/CH5/EX5.2/Chapter5_example2.sce b/2168/CH5/EX5.2/Chapter5_example2.sce
new file mode 100755
index 000000000..f6e839545
--- /dev/null
+++ b/2168/CH5/EX5.2/Chapter5_example2.sce
@@ -0,0 +1,16 @@
+clc
+clear
+//Input data
+r=8//Compression ratio
+n=1.41//Adiabatic index of the medium
+cv=0.17//Mean Specific heat at constant volume in kcal/kg/degree C
+x=2//Percentage with which spcific heat at constant volume increases
+R=29.3//Characteristic gas constant in mkg/kg/degree C
+J=427//Mechanical equivalent of heat in kg.m/kcal
+
+//Calculations
+e=(1-(1/r^(n-1)))//Air standard efficiency neglecting the variation in specific heat
+debye=((x/100)*((1-e)/e)*(R/(J*cv))*log(r))*100//Ratio of de and e in percent
+
+//Output
+printf('The change in air standard efficiency of the cycle is %3.3f percent',debye)