Geometry import to PDE toolbox -pdegplot(model, 'FaceLabels', 'on') does not show face labels

5 次查看(过去 30 天)
I have been using the decsg function to create the geometry from the edges.
The decomposed geometry matrix is created but recieving the error as-
Warning: Unable to display face labels because the geometry is invalid. Check if edges overlap or intersect at non-end points.
Generating a mesh can also fail for this geometry.
> In pdegplot>plotTwoDGeometry (line 141)
In pdegplot (line 98)
The code works fine with the other data points
  1 个评论
Abhijeet
Abhijeet 2023-5-4
Hi Anil,
Can you please provide more details on the edges used to create the geometry ?
Specifically, are there any edges that overlap or intersect at non-end points ? This information will help in identifying the cause of the issue and sugggesting a solution for the same.
Thanks

请先登录,再进行评论。

回答(1 个)

Supraja
Supraja 2023-6-2
Check your geometry to see if there are overlapping regions or open boundaries. If there are any, try to fix them by separating the overlapping regions or completing the boundaries. The pdegplot function requires a valid geometry, which should include closed regions and complete boundaries.
You can also try using a resolution parameter (hmax) to refine the geometry.
Check the below documentation links for pdegplot and hmax function example for further reference:
https://www.mathworks.com/help/pde/ug/pdegplot.html?searchHighlight=pdegplot&s_tid=srchtitle_pdegplot_1
https://www.mathworks.com/help/pde/ug/3d-solution-and-gradient-plots-with-matlab-functions.html?searchHighlight=pdegplot%20hmax%20function&s_tid=srchtitle_pdegplot%2520hmax%2520function_1

类别

Help CenterFile Exchange 中查找有关 Geometry and Mesh 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by