You are on page 1of 3

TUT (4)

‫محمد ياسر غانم‬

162047

Q4)

DF table:-

Number of stream variables 11+3


Number of independent material balance equations 6
Number of independent given compositions 4
Number of given relations 0
Number of energy balance equations 1
Number of given temperatures 2
basis 1
Degree of freedom 0
(DF = 0) therefore this problem is solvable.

Number of Independent unknowns in each stream table:-

Stream number 1 2 total


Independent unknown variables 0 3 3+3+Q

Number of independent equations :-

Material balance equations = 6

energy balance equations = 1

Total =8

(CH3OH==A,,,CH4==B,,,CO==C,,,H2O==W,,,D==CO2,,,H2=H)

Selection of independent variables :-

(W2,D2,H2,R1,R2,R3)

Then we write the equations in terms of the selected independent variables:-

Material balance equations :

A:

R1-A2=0

B:

R2-B2=0

C:

C1-R1-R2-R3-C2=0
W:

R2-R3-W2=0

D:

R3-D2=0

H:
H1-2R1-3R2+R3-H2=0

ENERGY BALANCE EQUATION:

(basis temperature 25C was chosen)

R1*HR1+R2*HR2+R3*HR3+(700-TREFF)*(6.9*C2+0.4*H2+0.8*A2+0.9*B2+0.8*W2+0.45*D2)-
(550-TREFF)*(H1*0.4+C1*6.9)-Q=0CODE:
FUNCTION CODE

function f =tut4_4(X)
H1=0.75*100; C1=0.25*100;
HF1=-22000;HF2=-50000;HF3=-10000;
TREFF=700;
HR1=HF1+(0.8-6.9-2*0.4)*(TREFF-25);
HR2=HF2+(0.8+0.9-3*0.4-6.9)*(TREFF-25);
HR3=HF3+(0.45+0.4-0.8-6.9)*(TREFF-25);
W2=X(1);D2=X(2);H2=X(3);R1=X(4);R2=X(5);R3=X(6);Q=X(7);
N2=(W2+D2+H2)/0.71;
A2=0.08*N2;
B2=0.01*N2;
C2=0.2*N2;
f(1)=R1-A2;
f(2)=R2-B2;
f(3)=C1-R1-R2-R3-C2;
f(4)=R3-D2;
f(5)=R2-R3-W2;
f(6)=H1-2*R1-3*R2+R3-H2;
f(7)=R1*HR1+R2*HR2+R3*HR3+(700-
TREFF)*(6.9*C2+0.4*H2+0.8*A2+0.9*B2+0.8*W2+0.45*D2)-(550-
TREFF)*(H1*0.4+C1*6.9)-Q;
end

SCRIPT CODE

x0=100*ones(1,7);
x=fsolve(@tut4_4,x0);
fprintf('TEMPERATURE OF STREAM 2= %8.3f \n',x(7))
Tplot=550:50:700;

Q=R1*HR1+R2*HR2+R3*HR3+(700-
TREFF)*(6.9*C2+0.4*H2+0.8*A2+0.9*B2+0.8*W2+0.45*D2)-(Tplot-
TREFF)*(H1*0.4+C1*6.9);
plot (Q,Tplot)
xlabel('Heat transfer rate');
ylabel('Temperature');
title('Q vs T');
grid on

You might also like