Implement species transport in a tube with reaction at the tube wall. The governing equation is:
The inlet profile is uniform. Assume an infinitely fast surface reaction at the tube wall, meaning . Choose your own parameters or make the equations dimensionless.
Questions:
What is the proper boundary condition at ?
Use the method of lines: Perform a spatial discretization in the radial direction to obtain a set of ODEs:
Use a standard SciPy ODE solver,
solve_ivp, to solve the set of equations.Compute the flux at the wall as a function of .
Compute the Sherwood number (based on ) as a function of .
Note that all numerical implementations should be consistent with the provided equations and boundary conditions.