Heat transfer, mesh sensitivity analysis?

Hi
I need to do a grid sensitivity analysis and to find the best node size which gives the most accurate heat loss. But the problem is that I found decreasing the node size changes the heat loss but it never converges. I changed the code to the simplest case with constant temperature on the boundaries but still, I see the same problem.
(the domain is two dimentionl with attached boundary conditions.)
It would be appreciated if help me.
I have attached my code.

3 件のコメント

J. Alex Lee
J. Alex Lee 2021 年 1 月 2 日
from what I can tell, you want to monitor the value of g as a function of mesh resolution, but it cannot be plotted because I think it is not indexed correctly. can you show what your [non-]convergence looks like? It's possible since you appear to be using first order derivatives that you just aren't getting high enough resolution to get into the convergence regime.
how are you assessing convergence? are you trying to fit a power law in mesh size?
also your code is inefficient - pay attention to teh warnings about preallocation and sparse indexing.
Roya Rajabi
Roya Rajabi 2021 年 1 月 3 日
編集済み: Roya Rajabi 2021 年 1 月 3 日
I even tested it with power law in mesh. But still the sam eissue. I atached the graph It would be appreciated to let me your idea
All my graphs are like this
J. Alex Lee
J. Alex Lee 2021 年 1 月 3 日
that looks pretty convergent to me...the power law needs to be in 1/num_nodes

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

質問済み:

2021 年 1 月 1 日

コメント済み:

2021 年 1 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by