Tut 4 Solution
Tut 4 Solution
Tut 4 Solution
TUT(4) solution
DF ZERO
Independent equations:
1) MB equations:
1. F2 = r
2. M2 = 100 – r
3. H2 = r
2) Conversion:
100−𝑀2
4. = 0.25
100
3) EB equation:
𝑄 = 𝑟∆𝐻𝑟 + ∑ 𝑁 ∗ 𝐶𝑃 ∗ ∆𝑇 − ∑ 𝑁 ∗ 𝐶𝑃 ∗ ∆𝑇
𝑂𝑈𝑇 𝐼𝑁
5.
𝑸 = 𝟎 = ( 𝒓 ∗ 𝟐𝟏𝟔𝟔𝟑. 𝟐𝟗 ) + (𝑭𝟐 ∗ 𝟏𝟐 ∗ (𝑻𝟐 − 𝟔𝟕𝟓)) + (𝑯𝟐 ∗ 𝟕 ∗ (𝑻𝟐 − 𝟔𝟕𝟓))
+ (𝑴𝟐 ∗ 𝟏𝟕 ∗ (𝑻𝟐 − 𝟔𝟕𝟓)) − 𝟎
Script:
x0=700*ones(1,5);
x=fsolve(@problem1,x0);
fprintf('T2=%8.3f\n',x(4))
b)
function f=problem11(x)
%variable heat capicities
%cp kj/mol.k
%basis, F1=100 mol
Tref=948;
aF=34.28*10.^-3; bF=4.268*10.^-5; cF=0; dF=-8.69*10.^-12;
aM=42.93*10.^-3; bM=8.301*10.^-5; cM=-1.87*10.^-8; dM=-8.03*10.^-12;
aH=28.84*10.^-3;bH=0.00765*10.^-5;cH=0.3288*10.^-8;dH=-0.8698*10.^-12;
M2=x(1); F2=x(2);H2=x(3);T2=x(4);r=x(5);
cpF1=aF*(T2-Tref)+(bF/2)*(T2^2-Tref^2)+(cF/3)*(T2^3-Tref^3)+(dF/4)*(T2^4-
Tref^4);
cpF2=aF*(Tref-298)+(bF/2)*(Tref^2-298^2)+(cF/3)*(Tref^3 298^3)+(dF/4)*(Tref^4-
298^4);
cpH1=aH*(T2-Tref)+(bH/2)*(T2^2-Tref^2)+(cH/3)*(T2^3-Tref^3)+(dH/4)*(T2^4-
Tref^4);
cpH2=aH*(Tref-298)+(bH/2)*(Tref^2-298^2)+(cH/3)*(Tref^3-
298^3)+(dH/4)*(Tref^4-298^4);
cpM1=aM*(T2-Tref)+(bM/2)*(T2^2-Tref^2)+(cM/3)*(T2^3-Tref^3)+(dM/4)*(T2^4-
Tref^4);
cpM2=aM*(Tref-298)+(bM/2)*(Tref^2-298^2)+(cM/3)*(Tref^3-
298^3)+(dM/4)*(Tref^4-298^4);
Hr=86+(cpF2-cpM2+cpH2);
%MB
f(1)=100-r-M2;
f(2)=r-F2;
f(3)=r-H2;
%CONVERSION
f(4)=((100-M2)/100)-0.25;
%EB
f(5)=r*Hr+(F2*cpF1+H2*cpH1+M2*cpM1);
end
x0=700*ones(1,5);
x=fsolve(@problem11,x0);
fprintf('T2=%8.3f\n',x(4))
Answer:
T2= 713.668
Question(2):
Rodwan Fathi solutions:
No of variables 8
Extent of reaction (r) 1
Temperature 3
Heat rate 1
Total ∑ 13
Givens
Material balance 5
Energy balance 1
Given compositions 1
Heat rate _
Basis 2
Temperature 3
relations 1
Total ∑ 13
Degree of freedom zero
Number of stream 1 2 3
Number of independent variables _ 1 5
N2 A3
O3
Selections -
M3
W3
NOTE :-
A = CH3 O = O2 M3 = NO N = Flow rate of stream2 W = H 2O
For N N2 - (2.4/0.21);
For NO 4*r – M3 = 0
Relation :-
1 – A3 – 0.9 = 0
Energy balance :-
In function file :-
function f = tut4Q3(x)
% define the indepndent variables
A3 = x(1);
O3 = x(2);
M3 = x(3);
W3 = x(4);
N2 = x(5);
r = x(6);
Q = x(7);
%write the 7 equation
f(1) = 2.4 - (5*r) - O3;
f(2) = 1 - (4*r) - A3;
f(3) = N2 - (2.4/0.21);
f(4) = 6*r - W3;
f(5) = 4*r - M3;
f(6) = 1 - A3 - 0.9;
f(7) = Q -(-216420*r) - ((2.4*8.4*(920-750)) + (0.79*N2*8*(920-750)) +
(1*12*(920-25)));
end
in script file :-
in command window :-
the heat of reaction in cal/mol NH3 =-22248.44