Utilizing a "guess and check" method inside an ODE
8 ビュー (過去 30 日間)
古いコメントを表示
I am trying to solve a 2nd order differential equation using a combination of ode45 and a "shooting" method.
k*T''+k'*T'=0
What I want to do is to define specific values of k for a span of x (which is my independent variable). k would have different values at every value of x. Then I will find my T value at every x using the ode45 code, and use it to recalculate k which would then be fed back in and so on and so forth until I achieved convergence.
To summarize: k=f(T) and T=f(x), solve k algebraically and use ode45 to solve the ode using different values of k and recalculate k at the new values of T. Repeat until I have T and k that agree with one another. Any suggestions?
2 件のコメント
Star Strider
2019 年 4 月 25 日
I’m not certain what you’re asking. If you’re ‘optimizing’ ‘k’, see if Optimizing a Simulation or Ordinary Differential Equation (link) will do what you want.
回答 (0 件)
参考
カテゴリ
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!