ODE45 not working

4 visualizaciones (últimos 30 días)
Hetune Manmohandas
Hetune Manmohandas el 10 de Mayo de 2020
Editada: Hetune Manmohandas el 11 de Mayo de 2020
Hey, im trying to solve a kinetic equation in function of the concentration and distance.
No matter the distance I place in txspan and L_reactor ( i changed from 0.5 to 100m), the ode return always the same concentration at the end of the reactor, when it should be calculating in function of the distance.
Can anyone help me?
solveD
  2 comentarios
Star Strider
Star Strider el 11 de Mayo de 2020
What is the result supposed to look like?
Do you have a reference plot?
Hetune Manmohandas
Hetune Manmohandas el 11 de Mayo de 2020
just realised i have a wrong equation for the rho cataslyst, therefore nothing would work.
thanks, sorry for this

Iniciar sesión para comentar.

Respuestas (1)

John D'Errico
John D'Errico el 11 de Mayo de 2020
One must wonder if the reason a parameter NEVER changes, is if the derivative is always identically zero.
Then I look at the end of your code and see this:
dcdx(2) = 0;
So while I am not told what these differential equations are, I do see that one of them MUST result in a constant value, that never changes from the initial value.
I wonder... :)
  1 comentario
Hetune Manmohandas
Hetune Manmohandas el 11 de Mayo de 2020
just realised i have a wrong equation for the rho cataslyst, therefore nothing would work.
thanks, sorry for this

Iniciar sesión para comentar.

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by