PDE Model Boundary Conditions

Hi Everyone,
I have a question regarding the Matlab PDE Model Boundary Conditions.
Currently, I am working with a 2D mesh with heatflux on one egdes. This egdes has 9 nodes. When I looked at state.u I recognized that this is a 1x12 array. But why?

Respuestas (1)

Torsten
Torsten el 29 de Feb. de 2024
Editada: Torsten el 29 de Feb. de 2024

0 votos

If you output state.x and state.y in the function, you can see to which evaluation points state.u belongs.

5 comentarios

Patrick Frey
Patrick Frey el 1 de Mzo. de 2024
Do you mean location.x and location.y?
Torsten
Torsten el 1 de Mzo. de 2024
Sorry, yes - that's what I mean.
Patrick Frey
Patrick Frey el 1 de Mzo. de 2024
With location.x and location.y I can see the evaluation points. But these points are different than the nodes on the edge. If I use a temperature as boundary condition instead of heatflux than the evaluatuion points are the same as the nodes. Why isn't this with heat flux?
Torsten
Torsten el 1 de Mzo. de 2024
If you use a heatflux condition, the temperatures at the boundary are not known in advance. I'm not sure how the PDE Toolbox approximates the temperatures in the node points. Maybe with some helper points to approximate dT/dn in the node points ?
But if you need this information reliably, you should contact MATLAB support.
Patrick Frey
Patrick Frey el 1 de Mzo. de 2024
Thank you very much for your help

Iniciar sesión para comentar.

Productos

Versión

R2023a

Etiquetas

Preguntada:

el 29 de Feb. de 2024

Comentada:

el 1 de Mzo. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by