Exercise II in EES
Exercise II in EES
Exercise II in EES
fluido$='water';
x_1=0,3;
P_1=100[kPa];
D=15*convert(cm;m);
L_Total=8*convert(cm;m);
L_1=2*convert(cm;m);
L_2=L_Total-L_1;
{L_2=6*convert(cm;m);}
"State 1"
u_1=IntEnergy(fluido$;P=P_1;x=x_1);
v_1=Volume(fluido$;P=P_1;x=x_1);
T_1=T_sat(fluido$;P=P_1);
A=(pi#*D**2)/4;
Vol_1=A*L_1;
m=Vol_1/v_1;
"State 2"
{upsilon_3=v_1;}
v_2=v_1;
P_2=105,5[kPa];
x_2=Quality(fluido$;P=P_2;v=v_2)
T_2=Temperature(fluido$;P=P_2;x=x_2);
u_2=IntEnergy(fluido$;P=P_2;x=x_2);
"State 3"
Vol_3= Vol_1 + A*L_2;
v_3=Vol_3/m;
P_3=P_2;
u_3=IntEnergy(fluido$;P=P_3;v=v_3);
T_3=Temperature(fluido$;P=P_3;v=v_3);
"State 4"
File:StepByStepExampleII.EES 03/04/2020 17:44:32 Page 2
er. 9.944: #4402: EASY ENGINEERING, https://www.youtube.com/channel/UCjC8ulmve2QNRJXhDpk-L2A+ CN xJID_JLN yNINGGBDE CJH@NYX _NJF
P_4=150[kPa];
v_4=v_3;
u_4=IntEnergy(fluido$;P=P_4;v=v_4);
T_4=Temperature(fluido$;P=P_4;v=v_4);
"Work"
W_23=P_2*m*(v_3-v_2);
"Heat"
Q_12=m*(u_2 - u_1);
Q_23=m*(u_3 - u_2) + W_23;
Q_34=m*(u_4 - u_1);
{B1=11;
TT1=11;}
{T_x=Temperature(fluido$;P=P_3;v=v_x);}
fluido$ = 'water'
x 1 = 0,3
P 1 = 100 [kPa]
m
D = 15 · 0,01 ·
cm
m
L Total = 8 · 0,01 ·
cm
m
L1 = 2 · 0,01 ·
cm
L 2 = L Total – L 1
State 1
u 1 = u fluido$ ; P = P 1 ; x = x 1
v 1 = v fluido$ ; P = P 1 ; x = x 1
T 1 = T sat fluido$ ; P = P 1
2
3,142 · D
A =
4
Vol 1 = A · L 1
File:StepByStepExampleII.EES 03/04/2020 17:44:32 Page 3
er. 9.944: #4402: EASY ENGINEERING, https://www.youtube.com/channel/UCjC8ulmve2QNRJXhDpk-L2A+ CN xJID_JLN yNINGGBDE CJH@NYX _NJF
Vol 1
m =
v1
State 2
v2 = v1
P 2 = 105,5 [kPa]
x 2 = x fluido$ ; P = P 2 ; v = v 2
T 2 = T fluido$ ; P = P 2 ; x = x 2
u 2 = u fluido$ ; P = P 2 ; x = x 2
State 3
Vol 3 = Vol 1 + A · L 2
Vol 3
v3 =
m
P3 = P2
u 3 = u fluido$ ; P = P 3 ; v = v 3
T 3 = T fluido$ ; P = P 3 ; v = v 3
State 4
P 4 = 150 [kPa]
v4 = v3
u 4 = u fluido$ ; P = P 4 ; v = v 4
T 4 = T fluido$ ; P = P 4 ; v = v 4
Work
W 23 = P2 · m · v3 – v2
Heat
Q 12 = m · u2 – u1
Q 23 = m · u3 – u2 + W 23
Q 34 = m · u4 – u1
SOLUTION
Unit Settings: SI C kPa kJ mass deg
A = 0,01767 [m2] D = 0,15 [m] fluido$ = 'water'
File:StepByStepExampleII.EES 03/04/2020 17:44:32 Page 4
er. 9.944: #4402: EASY ENGINEERING, https://www.youtube.com/channel/UCjC8ulmve2QNRJXhDpk-L2A+ CN xJID_JLN yNINGGBDE CJH@NYX _NJF
Water
700
500
State 4
400
T [°C]
100 kPa
300
200 State 3
105,5 kPa State 2
100
0,05 0,1 0,2 0,5
0