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/CH5/EX5.08 | |
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/CH5/EX5.08')
-rwxr-xr-x | 32/CH5/EX5.08/5_08.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/32/CH5/EX5.08/5_08.sce b/32/CH5/EX5.08/5_08.sce new file mode 100755 index 000000000..1c970c731 --- /dev/null +++ b/32/CH5/EX5.08/5_08.sce @@ -0,0 +1,19 @@ +//pathname=get_absolute_file_path('5.08.sce')
+//filename=pathname+filesep()+'5.08-data.sci'
+//exec(filename)
+//Maximum temperature(in K):
+T1=1800
+//Minimum temperature(in K):
+T2=300
+//Rate at which heat is added(in MW):
+Q1=5
+//Work output(in MW):
+W=2
+//Heat rejected(in MW):
+Q2=Q1-W
+//Entropy generated(in MW/K):
+dSg=(-Q1/T1+Q2/T2)
+//Work lost(in MW):
+w=T2*dSg
+printf("\nRESULT\n")
+printf("\nWork lost = %f MW",w)
\ No newline at end of file |