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 /443/CH3/EX3.13 | |
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 '443/CH3/EX3.13')
-rwxr-xr-x | 443/CH3/EX3.13/3_13.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/443/CH3/EX3.13/3_13.sce b/443/CH3/EX3.13/3_13.sce new file mode 100755 index 000000000..37b58ca78 --- /dev/null +++ b/443/CH3/EX3.13/3_13.sce @@ -0,0 +1,21 @@ +pathname=get_absolute_file_path('3_13.sce')
+filename=pathname+filesep()+'3_13_data.sci'
+exec(filename)
+//Cutoff ratio
+rc=(p2/p1)^(1/y)/re
+//Temperature at the end of compression stroke(in K)
+T2=T1*(p2/p1)^((y-1)/y)
+//Temperature at the start of expansion stroke(in K)
+T3=T2*(rc)
+//Temperature at the end of expansion stroke(in K)
+T4=T3*(1/re)^(y-1)
+//Heat added(in kJ/kg)
+Ha=Cp*(T3-T2)
+//Heat rejected(in kJ/kg)
+Hr=Cv*(T4-T1)
+//Efficiency
+n=(Ha-Hr)/Ha*100
+printf("\n\nRESULTS\n\n")
+printf("\nHeat added:%f\n",Ha)
+printf("\nHeat rejected:%f\n",Hr)
+printf("\nEfficiency:%f\n",n)
|