how to solve 2d heat equation?

6 ビュー (過去 30 日間)
Aryaman
Aryaman 2014 年 9 月 29 日
編集済み: John D'Errico 2014 年 9 月 29 日
I am trying to solve a pde (steady state 2d heat equation). The system has certain number of nodes in x and y directions and the temperature of the boundary nodes is given. The temperature of all other nodes is the average value of the surrounding 4 nodes. How do I carry out iterations so the the error comes out to be nearly zero when we calculate successive nodal temperatures?

採用された回答

John D'Errico
John D'Errico 2014 年 9 月 29 日
編集済み: John D'Errico 2014 年 9 月 29 日
Why iterate at all? Form a sparse linear system, and solve using backslash.
As it turns out, if the domain is a rectangular one, you can just use my inpaint_nans tool from the file exchange, as it does exactly what you want.

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by