Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION A 2 step chemical reaction is taking place in a tubular reactor. The equations governing the change in concentration of the species in the reaction are:
2C CA CA vz D 2A k1C ACB t z z CB C 2C vz B D 2B k1C ACB k2CBCC t z z 2 Cc C CC vz c D k1C ACB k2CBCc t z z 2 CD C 2C D vz D D k2CBCC t z z 2
The Danckwerts boundary conditions are applied for the reactors inlet and outlet. The reaction is assumed at constant temperature with rate constants,k1, k2 =1. The initial conditions for the concentrations of species A,B,C,D are CA, CB=1 and CC, CD=0. The Axial velocity, vz=1m/s and Diffusion Coefficient, D=1.10-4 m2/s.
METHODS We attempt in solving 4 partial differential equations simultaneously. We have 1. Utilised MATLAB built in function, pdepe() to solve the partial differential equations . For the pdepe functions the spatial co-ordinate system is a dimensionless system (z/L). L=10m (assumed). 2. Discretized spatial domain by finite volume method (FVM) resulting in a set of ordinary differential equations and then solved it using ode15s.
RESULTS The result obtained from both the methods is given below:
CA vs time,distance in pdepe()
CA vs time,distance in FVM
CB vs time,distance in pdepe()3
CB vs time,distance in FVM
The CA and CB decreases with time and distance as it is consumed during the reaction. At time=5s, at the outlet of reactor, CA=0.32 mol/dm3, CB =0.0296 mol/dm3.
CC vs time,distance in pdepe()
CC vs time,distance in FVM
CD vs time,distance in pdepe()
CD vs time,distance in FVM
The CC and CD increases with time and distance as it is formed during the reaction. At time= 5s, at reactor outlet, CC =0.36 mol/dm3, CD = 0.31 mol/dm3. For a particular time instant, the reaction reaches an equilibrium at certain distance from inlet after which concentrations remain constant till the outlet of the reactor. The concentration terms reach a steady state at time=5s and there is no change in concentration with time after time=5s. The concentration changes only along length of the reactor.
5
CONCLUSIONS The spatial discretization and pdepe functions give the same results as we can observe from the solution plots. As we can observe that some values of concentration in pdepe() plots have a negative values. That is noise or fluctuation from the pde solver which is unavoidable.
LIST OF SYMBOLS CA (mol/dm-3) Concetration of Species A CB (mol/ dm-3) Concentration of species B CC (mol/dm-3) Concetration of Species C CD (mol/dm-3) Concetration of Species D Vz (m/s) Axial Velocity D (m2/s) Diffusion Coefficient k1 ( s-1(mol/dm3)-1 Rate constant k2 (s-1(mol/dm3)-1 Rate constant z (m) Coordinate system in the direction of the length of the reactor L (m) Length of the Reactor T (s) - Time
global k2; global L; c(1)=1; c(2)=1; c(3)=1; c(4)=1; f(1)=D*dudx(1)/L^2; f(2)=D*dudx(2)/L^2; f(3)=D*dudx(3)/L^2; f(4)=D*dudx(4)/L^2; s(1)=-vz*dudx(1)/L-k1*u(1)*u(2); s(2)=-vz*dudx(2)/L-k1*u(1)*u(2)-k2*u(2)*u(3); s(3)=-vz*dudx(3)/L+k1*u(1)*u(2)-k2*u(2)*u(3); s(4)=-vz*dudx(4)/L+k2*u(2)*u(3); end
if j>2*Nz+1&&j<3*Nz+1 solu3(i,j-2*Nz)=sol(i,j); end if j>3*Nz+1&&j<4*Nz+1 solu4(i,j-3*Nz)=sol(i,j); end end end display(solu1); x=linspace(0,10,Nz); figure surf(x,time,solu1) figure surf(x,time,solu2) figure surf(x,time,solu3) figure surf(x,time,solu4);
11