Write script matlab for solving the convection-diffusion equation of a compound in a 3D annular reactor (diffusion in two directions with convection)

6 views (last 30 days)
hello,
I would like help to write a matlab for solving the convection-diffusion equation of a compound in a 3D annular reactor (diffusion in two directions r and teta with convective transport in the main direction, see figure below) with a reaction on the surface of inner cylinder. The elements of the problem are as follows:
a 3D model is proposed. This model is based on a convection / radial diffusion principle in the annular space of the reactor. The mass balance in the gas phase can be written (eq. (1)):
(1)
0 < z < L
Inlet concentration : C0=4.5 10-5 mol.m-3
Where r is radial coordinate (m), z is axial coordinate, u is flow velocity (m s-1) and C, is the concentration of NCl3 (mol m-3).
The model takes the velocity profile developed in the annular space into account, as expressed by the following relationship:
(2)
With
(3)
z=1m
Um=0.5m s-1
ri=0.04m, the internal radius
re=0.05m, the external radius of reactor (m).
Boundary conditions are:
  • at the inner surface of the external cylinder, r=re:
(4)
  • at the catalyst surface, r=ri,
(5)
Where rp is the photocatalytic rate (mol m-2 s-1).
(6)
I=9.8 W m-2, n =1, kp = 2.6x10-6 mol s-1 W-1and Kp = 3x103m3 mol-1.
and for and
Thank you very much for your help

Answers (1)

Torsten
Torsten on 6 Sep 2024
Moved: Torsten on 6 Sep 2024
Since you don't seem to have experience with discretization and the method of lines, I'd strongly recommend a ready-to-use 3d solver for partial differential equations like the MATLAB PDE toolbox or COMSOL Multiphysics.
  7 Comments
Torsten
Torsten on 27 Sep 2024
Edited: Torsten on 27 Sep 2024
The z-coordinate in your model takes the role of the t-coordinate in the PDE Toolbox. So I guess you have to set d = U and f = 0 in specifyCoefficients ? And perform a "time-dependent" (z-dependent) instead of a stationary simulation ? And change your geometry from 3d to 2d - thus only do a simulation in a circular ring ?
Fabien
Fabien on 30 Sep 2024
Moved: Torsten on 30 Sep 2024
Dear Torsten,
Thank you very much for your help, I have to apply your suggestions right now.
Kind regards.
F

Sign in to comment.

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!