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?

Answers (1)

Torsten
Torsten on 29 Feb 2024
Edited: Torsten on 29 Feb 2024
If you output state.x and state.y in the function, you can see to which evaluation points state.u belongs.

5 Comments

Do you mean location.x and location.y?
Sorry, yes - that's what I mean.
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?
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.
Thank you very much for your help

Sign in to comment.

Products

Release

R2023a

Asked:

on 29 Feb 2024

Commented:

on 1 Mar 2024

Community Treasure Hunt

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

Start Hunting!