blob: 7ffa8f462f89976c801cf7f43be3821e46b52580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//Initialization of variables
p1=1000 //psia
t1=100.32 //F
h1=70.97 //Btu/lbm
p2=1000 //psia
t2=544.61 //F
h2=1191.8 //Btu/lbm
//calculations
Qrev=h2-h1
//results
printf("Heat transferred = %.1f Btu/lbm",Qrev)
|