How can I find a Element from Mesh, when I have only one point.
1 回表示 (過去 30 日間)
古いコメントを表示
Hallo, I'm trying to find a element in the PDE-Model. I mean, how kan I get the nomber of Element when i have only a point region.x and region.y. I tried:
for i=1:ne
EN=findElements(mesh,'attached',[region.x(i);region.y(i)]);
end
sorry for my English
4 件のコメント
回答 (1 件)
Siju Thomas
2019 年 9 月 17 日
Please try this and see if this works you:
N_ID = findNodes(mesh,'nearest',[region.x(i);region.y(i)]);
En = findElements(mesh,'attached',N_ID);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!