Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Reactor-Particle Coupling with Maxwell-Stefan Film Transfer

Background

This notebook extends the reactor-particle coupling from L8 with an external multicomponent mass-transfer layer. The reactor gas concentration and the gas concentration at the particle boundary are separate unknowns. Their difference is not prescribed with a single scalar film coefficient per species; instead it follows the linearized Maxwell-Stefan film relation used in Exercise 7.2.

The model solves one monolithic residual for

reactor gas concentration, particle-boundary gas concentration, particle concentration profile

at every axial cell. The example reaction is

A→B+CA \rightarrow B + C

inside a spherical catalyst particle. The external film connects the gas phase to the particle surface.

Governing Equations

The reactor gas balance for species ii is

ddz(vcg,i−Daxdcg,idz)=εsRˉiapp,\frac{d}{dz}\left(v c_{g,i} - D_\mathrm{ax}\frac{dc_{g,i}}{dz}\right) = \varepsilon_s \bar{R}_i^\mathrm{app},

where Rˉiapp\bar{R}_i^\mathrm{app} is the apparent particle source term per particle volume and εs\varepsilon_s is the solid holdup. In the implementation below this apparent source is computed from the diffusive flux through the outer particle face,

Rˉiapp=3RpNi(Rp),Ni=−Dp,idcp,idr.\bar{R}_i^\mathrm{app}=\frac{3}{R_p}N_i(R_p), \qquad N_i=-D_{p,i}\frac{dc_{p,i}}{dr}.

For a consumed species the outward flux is negative, so the apparent source is also negative. At steady state this boundary-flux expression is equivalent to the volume-averaged particle source term, but it matches the direct reactor-particle coupling formulation used in the previous notebook.

The particle model is a spherical diffusion-reaction balance,

1r2ddr(r2Dp,idcp,idr)+Ri(cp)=0,\frac{1}{r^2}\frac{d}{dr}\left(r^2 D_{p,i}\frac{dc_{p,i}}{dr}\right) + R_i(c_p)=0,

with symmetry at the particle center and a Dirichlet boundary value at the particle surface,

cp,i(Rp)=cb,i.c_{p,i}(R_p)=c_{b,i}.

The particle source term is first order in AA,

Ri=νikcp,A,ν=(−1,1,1).R_i = \nu_i k c_{p,A}, \qquad \nu=(-1,1,1).

The boundary concentration cbc_b is coupled to the reactor concentration cgc_g by a linearized Maxwell-Stefan film model. With Rig=εsRˉiappR_i^g=\varepsilon_s\bar{R}_i^\mathrm{app} as the source per reactor volume and km,ijak_{m,ij}a as pairwise volumetric film-transfer coefficients,

cb,i−cg,i=∑j≠iyjRig−yiRjgkm,ija,c_{b,i}-c_{g,i} = \sum_{j\ne i}\frac{y_j R_i^g-y_i R_j^g}{k_{m,ij}a},

where the mole fractions are evaluated from the film midpoint concentration,

yi=12(cg,i+cb,i)∑j12(cg,j+cb,j).y_i=\frac{\tfrac12(c_{g,i}+c_{b,i})}{\sum_j \tfrac12(c_{g,j}+c_{b,j})}.

For a consumed species this relation gives a lower boundary concentration than the reactor bulk. For produced species it gives a higher boundary concentration.

Parameters and Assumptions

The numerical example is intentionally compact. It is meant to show the coupling pattern, not to represent a specific catalyst or gas mixture. The axial reactor has convection and a small amount of axial dispersion. The particles are spherical and radially resolved with grid refinement near the surface.

axial cells 40.00 particle radial cells 14.00 reactor length [m] 1.00 velocity [m/s] 0.30 particle radius [mm] 1.00 solid holdup [-] 0.35 external area [1/m] 1050.00 reaction rate constant [1/s] 3.00 Name: settings, dtype: float64

PyMRM Implementation

The state array has shape (n_z, n_r + 2, n_c):

  • u[:, 0, :] is the reactor gas concentration cgc_g;

  • u[:, 1, :] is the particle-boundary gas concentration cbc_b;

  • u[:, 2:, :] is the resolved particle concentration cp(z,r,i)c_p(z,r,i).

This keeps the spatial coordinate first and the species index last. The constant reactor and particle transport operators are assembled once. The particle diffusion flux matrix is also retained at the outer particle face, where it gives the apparent source term through 3Ni(Rp)/Rp3N_i(R_p)/R_p. The volume-averaged source is kept only as a numerical consistency check.

The full coupled Jacobian is generated with NumJac using a sparse block-banded stencil: each axial cell may couple all local region/species variables, while the reactor transport also couples neighboring axial cells.

success True message Converged Newton iterations 4 final residual norm 0.0 minimum concentration [mol/m3] 0.04295 outlet A conversion 0.862781 outlet gas c_A (face) [mol/m3] 0.137219 outlet boundary c_A [mol/m3] 0.093007 Name: solve summary, dtype: object

Results

The gas and boundary concentrations separate because the film transfer is finite. The boundary concentration of reactant AA is below the reactor gas concentration, while the products are enriched at the particle boundary.

<Figure size 1200x400 with 2 Axes>
<Figure size 1200x400 with 2 Axes>
<Figure size 700x400 with 1 Axes>

Validation

The checks below are numerical consistency checks for the coupled residual. The residual norm verifies the monolithic solve. The Maxwell-Stefan row check recomputes only the film equation. The signs of the film concentration differences should also be physically consistent: reactant AA is consumed in the particle, so cb,A<cg,Ac_{b,A}<c_{g,A}, while products are generated and tend to have cb,i>cg,ic_{b,i}>c_{g,i}.

monolithic residual norm 4.921098e-09 film residual norm 1.341705e-13 particle residual norm 5.750511e-12 max apparent-average source diff 1.143391e-13 relative apparent-average source diff 2.224193e-13 min(c_b,A - c_g,A) [mol/m3] -4.201240e-01 max(c_b,B - c_g,B) [mol/m3] 2.100620e-01 max(c_b,C - c_g,C) [mol/m3] 2.100620e-01 Name: checks, dtype: float64

Discussion

The extra boundary concentration block is the main modeling change compared with direct reactor-particle coupling. The reactor no longer supplies the particle-surface concentration directly. Instead, the reactor concentration cgc_g, boundary concentration cbc_b, and particle profile cpc_p are solved together.

The linearized Maxwell-Stefan film equation is algebraic, but it is strongly coupled to the particle because the apparent source term comes from the resolved particle boundary flux. The resulting block structure is useful for lecture purposes:

  • the reactor transport row contains axial convection-dispersion and the flux-based apparent particle source;

  • the film row contains the Maxwell-Stefan relation between cgc_g, cbc_b, and the same apparent source;

  • the particle rows contain radial diffusion-reaction with cbc_b as the surface boundary value.

The flux-based apparent source and the particle-volume averaged source should agree at steady state. The numerical check above compares them directly, so the implementation remains consistent with the earlier volume-average interpretation while using the same boundary-flux definition as the direct reactor-particle coupling notebook.

For very large pairwise film coefficients, the correction term becomes small and cb≈cgc_b\approx c_g. For smaller coefficients, the boundary concentration difference becomes the external mass-transfer driving force. This is the point where a simple scalar film coefficient and a multicomponent Maxwell-Stefan film model start to behave differently.