ABSTRACT(original article): The laminar flow reactor (LFR) is one of the most comprehensive problems in chemical reaction engineering, as its modeling involves mass, heat, and momentum conservation equations coupled with chemical reaction rate equations. It is relatively easy to grasp its basic operation, but the solution of the problem is far from trivial. Although there are analytical solutions that simplify the problem, students and tutors must use efficient numerical strategies to appropriately solve some LFR problems. In the present investigation, we solve several different cases of two-dimensional cylindrical LFR, beginning with the isothermal case as a benchmark. Calculations were performed using the Chebyshev orthogonal collocation technique by custom scripts in Scilab, Mathematica©, and Matlab®, and were compared with solutions available from the ECRE version of COMSOL®, which was used as the reference, as well as available analytical solutions in the literature. After analyzing the case of the isothermal LFR with Newtonian fluid, we explored non-Newtonian fluids, including Carreau and Bingham fluids, whose LFR results are not available in the preceding literature. For Newtonian fluids, besides (a) the isothermal case, we also explore three other non-isothermal design cases: (b) cooling jacket with a fixed heat exchange coefficient at the wall, (c) adiabatic operation, (d) non-isothermal LFR with isothermal wall. Through a performance criterion, the different operation models are compared and we show that non-isothermal design cases perform better than the isothermal case. Computation times for different scenarios are quite short, and taking 25 nodal points or more suffices for an accurate and timely solution of the more complex problem, Case (b). The numerical modeling approach is useful from a pedagogical standpoint, as one can compare numerical results with classical assumptions, and progress from a more restrictive conceptual model (segregated flow) to an array of different kinds of operation with the LFR, in which one needs to consider diffusion and temperature distribution. CITATION(original article): A.-H. Soares, L. de Sousa Santos, H. Binous, A. A. Shaikh, and A. Bellagi, Exploring tubular steady-state laminar flow reactors with orthogonal collocation, Comput. Appl. Eng. Educ. (2024), e22795. DOI: https://doi.org/10.1002/cae.22795
We plot Figure 4 of Ref . 2, which gives the concentration in a laminar flow reactor (Newtonian fluid case) versus the radial position for selected values of the axial position . We also draw contour and density plots. Finally, the value of the mixing cup concentration is computed. Here, the solution is based on the Chebyshev Orthogonal Collocation Technique.
Values of the parameters obtained from COMSOL-ECRE
Uk=1300;Cpc=4180;mc=0.01;k=0.559;DH=-83680;Dp=10^-9;Ea=95238;A=1.110^8;rho=1000;Cp=4180;U=v0/(PiR^2);Rg=8.314;v0=510^-4;Ta0=298;Keq0=1000;rhocat=1500;T0=320;Ca0=500;R=0.1;L=1;
Number of collocation points is Np+1
Np=40;
Differentiation matrix
Ds=Table[d[i,j],{i,0,Np},{j,0,Np}];d[0,0]=(2Np^2+1)/6//N;d[Np,Np]=-(2Np^2+1)/6//N;d[i_,i_]:=-y[i]/(2(1-y[i]^2));y[i_]:=Cos[iPi/Np]//N;d[j_,k_]:=If[j!=k,c[j](-1)^(j+k)/(c[k](y[j]-y[k]))];c[i_]:=If[i==0||i==Np,2,1];Dsq=Ds.Ds;
Partial derivative operators
L2r=(2/R)^2KroneckerProduct[Dsq,IdentityMatrix[Np+1]];L2z=(2/L)^2KroneckerProduct[IdentityMatrix[Np+1],Dsq];L1r=(2/R)KroneckerProduct[Ds,IdentityMatrix[Np+1]];L1z=(2/L)KroneckerProduct[IdentityMatrix[Np+1],Ds];
Concentrations
Ca=Table[ca[i+(j-1)(Np+1)],{j,1,Np+1},{i,1,Np+1}]//Flatten;
Conversions
xa=Table[1-ca[i+(j-1)(Np+1)]/Ca0,{j,1,Np+1},{i,1,Np+1}]//Flatten;
Positions of the collocation points
r=Table[R/2(1+y[i]),{i,Np,0,-1}];z=Table[L/2(1+y[i]),{i,Np,0,-1}];
Governing equations
Eq1[i_]:=-Dp1/r[[Quotient[i-1,Np+1]+1]]L1r[[i]].Ca+DpL2r[[i]].Ca+DpL2z[[i]].Ca+2U(1-(r[[Quotient[i-1,Np+1]+1]]/R)^2)L1z[[i]].Ca+ra[i]==0;
Rate equation
ra[i_]:=-AExp[-Ea/(RgT0)]rhocat(Ca[[i]]^2-1/(Keq0Exp[DH/Rg(1/303-1/T0)])(2Ca0xa[[i]])^2)
Boundary conditions
BC1=Table[Ca[[1+(j-1)(Np+1)]]==Ca0,{j,1,Np+1}];BC2=Table[L1r[[i+Np(Np+1)]].Ca==0,{i,2,Np}];BC3=Table[L1r[[i]].Ca==0,{i,2,Np}];BC4=Table[L1z[[Np+1+(j-1)(Np+1)]].Ca==0,{j,1,Np+1}];
Unknown concentrations
unknowns=Join[Flatten[Table[{{Ca[[i]],300}},{i,1,(Np+1)(Np+1)}],1]];
System of equations to be solved using FindRoot
sys=Flatten[Join[{BC1,BC2,BC3,BC4,Flatten[Table[{Eq1[i+(j-1)(Np+1)]},{i,2,Np},{j,2,Np}],1]}],1];sol=FindRoot[sys,unknowns];
Plotting the concentration profiles at different axial positions - we reproduce Fig. 4 of Ref. 2 by Soares et al.
a=Flatten[Table[{r[[j]],z[[i]],Ca[[i+(j-1)(Np+1)]]/.sol},{j,1,Np+1},{i,1,Np+1}],1];f=Interpolation[a,InterpolationOrder3]P1=Plot[{f[x,0.2],f[x,0.4],f[x,0.6],f[x,0.8]},{x,0,0.1},FrameTrue,GridLinesAutomatic,PlotStyleThick,AspectRatio1,ImageSize400{1,1},PlotLegends{"z=0.2","z=0.4","z=0.6","z=0.8"},FrameLabel{Style["radial position",14],Style["concentration",14]}]
Out[]=
InterpolatingFunction
Out[]=
Contour plot of concentration
ContourPlot[f[x,y],{x,0,0.1},{y,0,1},PlotPoints200,FrameLabel{Style["r",Italic,16],Style["z",Italic,16]},PlotLegendsAutomatic,ColorFunction"Rainbow",PlotRangeAll,AspectRatio2]
Out[]=
Density plot of concentration
DensityPlot[f[x,y],{x,0,0.1},{y,0,1},PlotPoints200,FrameLabel{Style["r",Italic,16],Style["z",Italic,16]},PlotLegendsAutomatic,ColorFunction"Rainbow",PlotRangeAll,AspectRatio2]
Out[]=
Computation of mixing-cup concentration
References
References
◼
◼
[2] A.-H. Soares, L. de Sousa Santos, H. Binous, A. A. Shaikh, and A. Bellagi, Exploring tubular steady-state laminar flow reactors with orthogonal collocation, Comput. Appl. Eng. Educ. (2024), e22795. https://doi.org/10.1002/cae.22795
CITE THIS NOTEBOOK
CITE THIS NOTEBOOK
Fogler's isothermal laminar flow reactor solved using the Chebyshev orthogonal collocation technique
by André von-Held Soares, Lizandro de Sousa Santos, Housam Binous, Abdullah A. Shaikh and Ahmed Bellagi
Wolfram Community, STAFF PICKS, September 14, 2024
https://community.wolfram.com/groups/-/m/t/3273945
by André von-Held Soares, Lizandro de Sousa Santos, Housam Binous, Abdullah A. Shaikh and Ahmed Bellagi
Wolfram Community, STAFF PICKS, September 14, 2024
https://community.wolfram.com/groups/-/m/t/3273945