summaryrefslogtreecommitdiff
path: root/2471/CH11/EX11.7/Ex11_7.sce
blob: 55a33ed1cddb4d6b9489bb59f52b85115d039fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear ;
clc;
// Example 11.7
printf('Example 11.7\n\n');
printf('Page No. 320\n\n');

//given
T1 = 40;// in degree 
T2 = 0;// in degree celcius
//As from carnot cycle, C.O.P = (T1/(T1 - T2)), where temperature are in degree celcius
C_O_P1 = ((T1+273)/((T1+273) - (T2+273)));
printf('C.O.P. is %.1f \n',C_O_P1)

// A secondary fluid as hot water at 60 deg C is used
T3 = 60;//  Temperature of hot water in degree celcius
C_O_P2 = ((T3+273)/((T3+273) - (T2+273)));
printf('C.O.P. when secondary fluid is used is %.1f \n',C_O_P2)