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 comentarios

J. Alex Lee
J. Alex Lee el 2 de En. de 2021
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 el 3 de En. de 2021
Editada: Roya Rajabi el 3 de En. de 2021
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 el 3 de En. de 2021
that looks pretty convergent to me...the power law needs to be in 1/num_nodes

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Preguntada:

el 1 de En. de 2021

Comentada:

el 3 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by