Hezam Alasqah CHE 354 HW 7
Hezam Alasqah CHE 354 HW 7
Hezam Alasqah CHE 354 HW 7
CHE 354 HW 7
Problem 1:
A→B
mol
C A 0=12
L
NA
We know: C a=
V
Therefore:
dCA
=r A
dt
dCA ∝
=−K A C A
dt
−d C A ∝
ln ( )=ln ( K A C A )
dt
ln ( a . b )=ln ( a ) + ln ( b )
Thus:
−d C A
ln ( )=ln ¿
dt
ln ( −d C A
dt )
=ln ( K A )+ ∝ln (C A )
Now we will plot ln (−ddtC ) vs. ln(C ¿ using excel where ddtC
A
A
A
will be calculated using table
Interstage points:
dCA
=
1
|
[ C −C A (i −1) ]
dt ti 2 ∆t A (i +1)
Final point:
dCA
=
1
|[ C −4 C A 5 +3 C A 6 ]
dt t 2 ∆ t A 4
As we can see from the above plot:
y=0.5985 x−2.1458
Order of reaction = ∝=slope=0.5985
ln ( K A )=b=−2.1458
−2.1458 L
K A =e =0.117
mol . min
2nd method: using nonlinear regression where the values of the difference between measured and
calculated values are obtained, squared and minimized.
dCA
=−K A C A∝
dt
Thus:
dCA
=−K A dt
CA∝
Integrating this expression, we get:
C A 01−∝ −C A 1−∝=(1−∝) K A t
Thus:
1−∝ 1−∝
C A 0 −C A
t=
(1−∝) K A
MATLAB
% time span
tspan=[0 5 10 15 20 25 30];
C_A=[12 9.56 7.41 5.64 4.17 2.95 1.95];
%time step
h=10-5;
der_C_A(1)=(-3*C_A(1)+4*C_A(2)-C_A(3))/(2*h);
for i=2:1:length(tspan)
if (i<7)
temp=(C_A(i+1)-C_A(i-1))/(2*h);
der_C_A(i)=temp;
else
der_C_A(i)=(C_A(i-3)-4*C_A(i-2)+3*C_A(i-1))/(2*h);
end
end
% log function of C
L=log(C_A);
% log for der
L_der=log(-1*der_C_A);
Using Matlab Curve Fit
Linear Regression
So alpha = 0.5169
KA = e-1.98 = 0.138
Assuming: K ' =K A C Bβ 0
' ∝ d CA
−r A =K C A =
dt
ln ( −d C A
dt ) '
=ln K + ∝ln (C A )
MATLAB
tspan=[0 2 4 6 8 10]
%time step
h=2;
car_1=[5 0.931 0.672 0.551 0.478 0.429];
der_car_1(1)=(-3*car_1(1)+4*car_1(2)-car_1(3))/(2*h);
for j=2:1:length(tspan)
if (j<6)
temp=(car_1(j+1)-car_1(j-1))/(2*h);
der_car_1(j)=temp;
end
end
der_car_1(6)=(car_1(4)-4*car_1(5)+3*car_1(6))/(2*h);
L_der_car_1=log(-1*der_car_1);
L_car_1=log(car_1);
%Second data set
car_2=[0.5 0.217 0.14 0.104 0.083 0.069];
dcar_2(1)=(-3*car_2(1)+4*car_2(2)-car_2(3))/(2*h);
for j=2:1:length(tspan)
if (j<6)
temp=(car_2(j+1)-car_2(j-1))/(2*h);
dcar_2(j)=temp;
end
end
dcar_2(6)=(car_2(3)-4*car_2(4)+3*car_2(5))/(2*h);
L_der_car_2=log(-1*dcar_2);
L_car_2=log(car_2);
With Regression Function built-in in Matlab we can plot log(dC) vs log(C) for the second run
alpha = 1.794
KA` = e -0.1284 = 0.88
We know:
-r A =K A C A∝ C B β
Now, for the first run, we have:
C A=C B
Thus:
1.782 β
−r A =K A C A CA
(1. 782+ β )
−r A =K A C A
dCA (1.782+β )
=−K A C A
dt
d CA
=−K A dt
C A(1.782+β )
Integrating, we have:
x
V =F A 0
−r A
F A 0=C A 0 V 0
1.782 1.244
−r A =K A C A CB
We know:
C A=C B
C A=C A 0 −C A 0 X A=C A 0 (1−X A )
Thus:
XA
V =C A 0 V 0 3.026 3.026
K AC A0 ( 1− X A )
XA
25=5∗2 3.026 3.026
0.273 ¿5 ( 1− X A )
XA
2.5= 3.026
35.6∗( 1− X A )
XA
89= 3.026
( 1−X A )
X A =0.79