I'm trying to run a code to plot conversion vs catalyst mass in a packed bed reactor, but something is wrong.

5 views (last 30 days)

Answers (1)

Torsten
Torsten on 18 Mar 2023
You tell the integrator that you have four additional inputs to your function
[W,F]=ode45(@(t,F)ODEfun(t,F,T,P_total,F0_total,R),W,F0);
but you only have two:
function dFdW = ODEfun(W,F,T,P_total)
  11 Comments
Torsten
Torsten on 18 Mar 2023
Edited: Torsten on 18 Mar 2023
I'm not an expert in chemical reaction engineering and can't help you in this respect, but I think your code is far off to answer the question behind the graphics.

Sign in to comment.

Categories

Find more on Numerical Integration and Differential Equations in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!