summaryrefslogtreecommitdiff
path: root/572/CH5/EX5.3/c5_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '572/CH5/EX5.3/c5_3.sce')
-rwxr-xr-x572/CH5/EX5.3/c5_3.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/572/CH5/EX5.3/c5_3.sce b/572/CH5/EX5.3/c5_3.sce
new file mode 100755
index 000000000..c9bf4c61e
--- /dev/null
+++ b/572/CH5/EX5.3/c5_3.sce
@@ -0,0 +1,12 @@
+//(5.3) A dwelling requires 5 * 10^5 kJ per day to maintain its temperature at 22C when the outside temperature is 10C. (a) If an electric heat pump is used to supply this energy, determine the minimum theoretical work input for one day of operation, in kJ.
+
+
+//solution
+
+//variable initialization
+Tc = 283 //in kelvin
+TH = 295 //in kelvin
+QH = 5*10^5 //in kj per day
+
+Wcyclemin = (1-Tc/TH)*QH
+printf('minimum theoretical work input for one day of operation in kj is:\n\tWmin = %e',Wcyclemin) \ No newline at end of file