This issue was the size of b, I reduced this and it worked perfectly. I find this odd as backward Euler is touted to be unconditionally convergent.
Using the backward Euler and upwinding to solve the viscous Burgers equation
13 ビュー (過去 30 日間)
古いコメントを表示
I wish to solve the following partial differential equation:

I have had some success using the backward Euler method for other linear equations and the upwinding approach. When I have tried it for the viscous burgers equation, it seems to have failed after the first step, and I have no idea why.
Can anyone point to where it seems to have gone wrong?
0 件のコメント
採用された回答
その他の回答 (1 件)
Torsten
2023 年 7 月 14 日
移動済み: Torsten
2023 年 7 月 14 日
Why don't you use ode15s to solve the semi-discretized system of ordinary differential equations ?
Look up "method-of-lines" for more details.
Or even better: "pdepe" is your friend.
5 件のコメント
Torsten
2023 年 7 月 14 日
編集済み: Torsten
2023 年 7 月 14 日
Advanced integration methods make the solvers more sensitive, and they might give up even if continuing would still yield a good solution. But integrating without adaptive stepsize to control the error you make in the solution is no alternative in my opinion.
But I don't want to critisize your coding - I have the impression that you work responsibly :-)
参考
カテゴリ
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!