summaryrefslogtreecommitdiff
path: root/32/CH4/EX4.04/4_04.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH4/EX4.04/4_04.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/CH4/EX4.04/4_04.sce')
-rwxr-xr-x32/CH4/EX4.04/4_04.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/32/CH4/EX4.04/4_04.sce b/32/CH4/EX4.04/4_04.sce
new file mode 100755
index 000000000..000058e39
--- /dev/null
+++ b/32/CH4/EX4.04/4_04.sce
@@ -0,0 +1,28 @@
+//pathname=get_absolute_file_path('4.04.sce')
+//filename=pathname+filesep()+'4.04-data.sci'
+//exec(filename)
+//Source temperature(in K):
+T1=827+273
+//Sink temperature(in K):
+T2=27+273
+//Temperature in the refrigerator(in K):
+T3=-13+273
+//Heat input(in kJ):
+Q1=2000
+//Net work available(in kJ):
+W=300
+//Rate at which heat is extracted(in kJ):
+Q2=Q1*T2/T1
+//Work in the engine(in kJ):
+We=Q1-Q2
+//Work in the refrigerator(in kJ):
+Wr=We-W
+//Heat transferred to the refrigerant(in kJ):
+Q3=Wr/(T2/T3-1)
+//Heat transferred to reservoir by refrigerant(in kJ):
+Q4=Q3+Wr
+//Total heat transferred to low temperature reservoir(in kJ):
+Wt=Q2+Q4
+printf("\nRESULTS\n")
+printf("\nHeat transferred to refrigerant = %f kJ",Q3)
+printf("\nTotal heat transferred to low temperature reservoir = %f kJ",Wt) \ No newline at end of file