Display generated mesh/ call out adjacent nodes in 3D domain

1 回表示 (過去 30 日間)
Shreya George
Shreya George 2021 年 2 月 15 日
コメント済み: Shreya George 2021 年 2 月 16 日
I have generated a 3D domain and meshed it using generateMesh() command. Is there a way to display the generated mesh? I need the indices of the nodes immediately below the the top surface of the domain. Is there a command to call these nodes directly rather than displaying the mesh and identifying each such nodes individually?

回答 (1 件)

Ravi Kumar
Ravi Kumar 2021 年 2 月 15 日
Check findNodes function. You should be able to specify region as box in which you need node IDs.
Regards,
Ravi
  1 件のコメント
Shreya George
Shreya George 2021 年 2 月 16 日
This is the command that I tried
nodes=findNodes(mesh,'box',[-5 5],[-2 2],[-0.5 0]);
But I keep getting this error message. My domain is defined with x = -5 to 5, y = -2 to 2, z = -5 to 0 .
Error using pde.FEMesh/findNodes
X and Y must define a 2-dimensional bounding box.
Also, using the box command requires specifying an arbitrary depth/ z lim. To see the nodes that are immediately below the top surface nodes, is there a way to display the nearest nodes in 3D as shown in examples in 2D?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by