blob: 4b1466c1762c7f87b3357ed38a434057638993e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Part (a)
P1 = 1e05;
P2 = 10e05;
vf = 0.001043;
Wrev = vf*(P1-P2);
disp("kJ/kg",Wrev/1000,"The work required in saturated liquid form is")
// Part (b)
h1 = 2675.5; s1 = 7.3594;
s2 = s1;
h2 = 3195.5;
Wrev1 = h1-h2;
disp("kJ/kg",Wrev1,"The work required in saturated vapour form is")
|