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 /32/CH7/EX7.06 | |
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 '32/CH7/EX7.06')
-rwxr-xr-x | 32/CH7/EX7.06/7_06.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/32/CH7/EX7.06/7_06.sce b/32/CH7/EX7.06/7_06.sce new file mode 100755 index 000000000..cbbd33f32 --- /dev/null +++ b/32/CH7/EX7.06/7_06.sce @@ -0,0 +1,21 @@ +//pathname=get_absolute_file_path('7.06.sce')
+//filename=pathname+filesep()+'7.06-data.sci'
+//exec(filename)
+//Temperature of IC engine(in K):
+T1=800+273
+//Work per kg of gas in engine(in kJ/kg):
+W=1050
+//Cp of gas(in kJ/kg.K):
+Cp=1.1
+//Temperature of the surroundings(in K):
+T0=30+273
+//Change in entropy of system(in kJ/kg.K):
+dSsys=W/T1
+//Change in entropy of surroundings(in kJ/kg.K):
+dSsurr=-Cp*(T1-T0)/T0
+//Loss of available energy(in kJ/kg):
+L=-T0*(dSsys+dSsurr)
+//Ratio of lost available exhaust energy to engine work:
+r=L/W
+printf("\nRESULT")
+printf("\nRatio of available exhaust energy to engine work= %f/1",r)
\ No newline at end of file |