summaryrefslogtreecommitdiff
path: root/555/CH6/EX6.2/2.sce
blob: a9e4917f108f35d3cff60f2b3fa04b39be0ebbc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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