summaryrefslogtreecommitdiff
path: root/3434/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3434/CH1/EX1.2/Ex1_2.sce')
-rw-r--r--3434/CH1/EX1.2/Ex1_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3434/CH1/EX1.2/Ex1_2.sce b/3434/CH1/EX1.2/Ex1_2.sce
new file mode 100644
index 000000000..43a69bc7c
--- /dev/null
+++ b/3434/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,11 @@
+// Given data:
+clc
+T1=40+273.0 // ambient temp in kelvin
+T2=-10+273.0 // freezer temp in kelvin
+Q2=2 // heat loss rate for freezer in kJ/s
+
+Q1=T1*(Q2/T2) // heat transfer rate in kJ/s
+
+W=Q1-Q2 // work in kW
+
+printf("The least power required is %0.2f kW",W)