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
조회 수: 11 (최근 30일)
이전 댓글 표시
I wish to solve the following partial differential equation:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1434293/image.png)
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!