summaryrefslogtreecommitdiff
path: root/1919/CH5/EX5.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1919/CH5/EX5.5
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 '1919/CH5/EX5.5')
-rwxr-xr-x1919/CH5/EX5.5/Ex5_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1919/CH5/EX5.5/Ex5_5.sce b/1919/CH5/EX5.5/Ex5_5.sce
new file mode 100755
index 000000000..de758a411
--- /dev/null
+++ b/1919/CH5/EX5.5/Ex5_5.sce
@@ -0,0 +1,20 @@
+
+// Theory and Problems of Thermodynamics
+// Chapter 5
+// Second law of Thermodynamics
+// Example 5
+
+clear ;clc;
+
+//Given data
+n = 0.6 //n = efficiency of carnot engine
+COP_R = 5 //TH = High temperature of reservoir
+
+// To find the energy absorbed from the cold body by the refrigerator for each kJ
+QL_Q1 = n * COP_R; // energy in kJ
+// n = W/Q1 => W = n*Q1
+// COP_R = QL/W => W = QL/COP_R
+// n*Q1 = QL/COP_R => QL/Q1 = n * COP_R
+
+// Results
+mprintf('The energy absorbed from the cold body by the refrigerator for each kJ = %1.0f kJ', QL_Q1)