diff options
Diffstat (limited to '1919/CH5/EX5.5/Ex5_5.sce')
-rwxr-xr-x | 1919/CH5/EX5.5/Ex5_5.sce | 20 |
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)
|