summaryrefslogtreecommitdiff
path: root/555/CH6/EX6.2
diff options
context:
space:
mode:
Diffstat (limited to '555/CH6/EX6.2')
-rw-r--r--555/CH6/EX6.2/2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/555/CH6/EX6.2/2.sce b/555/CH6/EX6.2/2.sce
new file mode 100644
index 000000000..a9e4917f1
--- /dev/null
+++ b/555/CH6/EX6.2/2.sce
@@ -0,0 +1,15 @@
+// Implementation of example 6.2
+// Basic and Applied Thermodynamics by P.K.Nag
+
+clc
+clear
+
+//Temperature T, Rate of heat transfer Q, Power W
+T1 = 30+273;//K
+T2 = -15+273;//K
+Q2 = 1.75;//kJ/s
+//For minimum power requirement
+Q1 = Q2*T1/T2;
+W = Q1 - Q2;
+printf('Least power necessary to pump the heat continuously is %0.2f kW',W);
+// end \ No newline at end of file