ODE45 not working
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Star Strider
2020 年 5 月 11 日
What is the result supposed to look like?
Do you have a reference plot?
回答 (1 件)
John D'Errico
2020 年 5 月 11 日
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... :)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!