TUT (4)
محمد ياسر غانم
162047
Q3)
a)
Number of stream variables 12+1 DF table:-
Number of independent material balance equations 5
Number of independent given compositions 1
Number of given relations 2
Number of energy balance equations 1
Number of given temperatures 3
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 3 Reactor total
Independent unknown variables 1 0 5 1 7+1
Number of independent equations :-
Material balance equations = 5
Given relations =2
energy balance equations = 1
Total =8
(N==N2,,,O==O2,,,A==NH3,,,B==NO,,,W==H2O)
Selection of independent variables :-
(N3,O3,A3,B3,W3,R,Q)
Then we write the equations in terms of the selected independent variables:-
Material balance equations :
A:
A2-4*R-A3=0
B:
4*R-B3=0
O:
0.21*100-5*R-O3=0
W:
6*R-W3=0
N:
0.79*100-N3=0
ENERGY BALANCE EQUATION:
(basis temperature 25C was chosen)
∆H(25) =4 ∆H(NO) +6∆H(H2O) -4∆H(NH3) = -216.72
R*∆H(25) + ((920-25)*(CPA*A3+CPB*B3+CPW*W3+CPO*O3+CPN*N3)) –
((0.21*100*CPO+0.79*100*CPN)*(750-25)) – Q=0
Given Relation:
0.21*100-2.4*A2=0
A2-A3-0.9*A2=0
CODE:
FUNCTION CODE
function A2= x(8);
O3=x(2);A3=x(3);B3=x(4); N3=x(5);W3=x(6); R=x(7);
Q=x(1);
Tref=25;
CPA=12;
CPB=7.122;
CPO=8.4;
CPN=8;
CPW=8.08;
H25=-216.72*1000;
f(1)=A2-4*R-A3;
f(2)=4*R-B3;
f(3)=21-5*R-O3;
f(4)=6*R-W3;
f(5)=79-N3;
f(6)=R*H25+((920-
Tref)*(CPA*A3+CPB*B3+CPW*W3+CPO*O3+CPN*N3))-
(21*CPO+79*CPN)*(750-Tref)-Q;
f(7)=A2-A3-0.9*A2;
f(8)=0.21*100-2.4*A2;
End
SCRIPT CODE
x0=-9*ones(1,8);
x=fsolve(@TUT_4,x0);
Q=x(1)/x(8);
fprintf('The rate of heat removal per 1mol of NH3 is %9.7f \
n',Q)
COMMAND WINDOW
The rate of heat removal per 1mol of NH3 is -24940.2618571