Geometry import to PDE toolbox -pdegplot(model, 'FaceLabels', 'on') does not show face labels
6 ビュー (過去 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
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
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Geometry and Mesh についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!