Setting up ODE in Matlab for ODE 45 solver
古いコメントを表示
Hi, I am having difficulty setting this problem up for the ODE45 solver. It is a kinetics equation, relating R (rate constants as a function of concentrations C), T (Temperature) and h (heat of formation) all of which vary with distance x. There are 3 species that take part in the reaction.
How do I formulate the function that calculates all these parameters to call in the ODE45 solver ( something like dTdx = .... ) How to plot x,T and x,C (what would be the correct syntax to plot these). Any help with a pseudo code will be greatly appreciated.

7 件のコメント
Torsten
2017 年 3 月 6 日
The molar balances run fine now ?
https://de.mathworks.com/matlabcentral/answers/327213-trouble-with-ode45-for-an-array-of-values
Best wishes
Torsten.
DIP
2017 年 3 月 6 日
Torsten
2017 年 3 月 6 日
Just add the equation for T to the three molar balances and solve the four ODEs simultaneously.
Best wishes
Torsten.
DIP
2017 年 3 月 7 日
DIP
2017 年 3 月 7 日
DIP
2017 年 3 月 7 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!