blob: b30b7a3a8adc2b18867eca9d7c094cc1715b7fe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Variable declaration:
//From steam tables:
U1 = 1237.1 //Internnal energy of gas (Btu/lb)
U2_g = 1112.2 //Internal energy of gas (Btu/lb)
U2_l = 343.15 //Internal energy of liquid (Btu/lb)
//Calculation:
Q = 0.5*(U2_g+U2_l)-1*U1 //Heat removed (Btu/lb)
//Result:
printf("Heat removed from the system during the process is : %.1f Btu/lb.",Q)
|