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/CH5/EX5.5 | |
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/CH5/EX5.5')
-rwxr-xr-x | 2168/CH5/EX5.5/Chapter5_example5.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2168/CH5/EX5.5/Chapter5_example5.sce b/2168/CH5/EX5.5/Chapter5_example5.sce new file mode 100755 index 000000000..ef75811e5 --- /dev/null +++ b/2168/CH5/EX5.5/Chapter5_example5.sce @@ -0,0 +1,22 @@ +clc
+clear
+//Input data
+af=25//Air fuel ratio
+CV=10000//Calorific value in kcal/kg
+cv=[0.17,0.00004]//Cv=0.17+0.00004T where Cv is Specific heat at constant volume and T is the temperature in K
+r=14//Compression ratio
+T2=800+273//Temperature at the end of compression in K
+R=29//Characteristic gas constant in mkg/kg/degree C
+J=427//Mechanical equivalent of heat in kg.m/kcal
+
+//Calculations
+CVm=(CV/(af+1))//Calorific value of mixture in kcal/kg
+cpv=(R/J)//Difference in mean specific heats in kcal/kg mol.K
+a=(cv(2)/2)//For solving T3
+b=cpv+cv(1)//For solving T3
+c=(-T2*(cpv+cv(1)))-((cv(2)/2)*T2^2)-CVm//Foe solving T3
+T3=(-b+sqrt(b^2-(4*a*c)))/(2*a)//Soving for T3 in K
+s=((T3/T2)/(r-1))*100//Percentage of the stroke
+
+//Output
+printf('The percentage of the stroke at which the combustion will be complete is %3.2f percent',s)
|