summaryrefslogtreecommitdiff
path: root/32/CH7/EX7.16/7_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH7/EX7.16/7_16.sce
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 '32/CH7/EX7.16/7_16.sce')
-rwxr-xr-x32/CH7/EX7.16/7_16.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/32/CH7/EX7.16/7_16.sce b/32/CH7/EX7.16/7_16.sce
new file mode 100755
index 000000000..6433aebb0
--- /dev/null
+++ b/32/CH7/EX7.16/7_16.sce
@@ -0,0 +1,25 @@
+//pathname=get_absolute_file_path('7.16.sce')
+//filename=pathname+filesep()+'7.16-data.sci'
+//exec(filename)
+//Minimum temperature(in K):
+Tmin=30+273
+//Maximum temperature(in K):
+Tmax=700+273
+//Temperature of surroundings(in K):
+T0=17+273
+//Rate at which engine receives heat(in kJ/min):
+Q1=2*10^4
+//Measured output of the engine(in kW):
+Wu=0.13*10^3
+//Efficiency:
+nrev=1-Tmin/Tmax
+//Availability or reversible work(in kJ/s):
+Wrev=nrev*Q1/60
+//Rate of irreversibility(in kJ/s):
+I=Wrev-Wu
+//Second law efficiency:
+n2=Wu/Wrev
+printf("\nRESULT")
+printf("\nAvailability = %f kJ/min",Wrev*60)
+printf("\nRate of irreversibility = %f kW",I)
+printf("\nSecond law efficiency = %f percent",n2*100) \ No newline at end of file