summaryrefslogtreecommitdiff
path: root/3856/CH5/EX5.3/Ex5_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3856/CH5/EX5.3/Ex5_3.sce')
-rw-r--r--3856/CH5/EX5.3/Ex5_3.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3856/CH5/EX5.3/Ex5_3.sce b/3856/CH5/EX5.3/Ex5_3.sce
new file mode 100644
index 000000000..0882d1f28
--- /dev/null
+++ b/3856/CH5/EX5.3/Ex5_3.sce
@@ -0,0 +1,27 @@
+//How much work must be done by a heat pump when the outdoor temperature is 5 dgree and minus 10 degree
+
+//Example 5.3
+
+clc;
+
+clear;
+
+q2=5000; //Amount of heat deliver by a pump in J
+
+T2=295; //Temperature of house in K
+
+T1=278; //Outdoor teperature in K
+
+q1=abs(q2)*(T1/T2); //Amount of heat in J
+
+w1=abs(q2)-q1; //Amount of work done by a heat pump when the outdoor temperature is 5 dgree in J
+
+printf("(a)Amount of work done when the outdoor temperature is 5 dgree = %.0f J",w1);
+
+T3=263; //Outdoor teperature in K
+
+q1=abs(q2)*(T3/T2); //Amount of heat in J
+
+w2=abs(q2)-q1; //Amount of work done by a heat pump in J
+
+printf("\n(b)Amount of work done when the outdoor temperature is minus 10 degree = %.0f J",w2);