フィルターのクリア

How can i extract the coordinates for a specified node for a fem model in matlab?

2 ビュー (過去 30 日間)
naresh bhimchand
naresh bhimchand 2020 年 4 月 30 日
コメント済み: KSSV 2020 年 4 月 30 日
I have generated a mesh in which i extracted a specified node by using findNodes option and i like to extract the that node coordinates and i dont know how.The example code is shared below in which i like to extract the nf2 node coordinates.So, please help me to solve this problem.
clc
clf
model = createpde(1);
importGeometry(model,'BracketTwoHoles.stl');
mesh = generateMesh(model)
[p,e,t] = meshToPet(model.Mesh)
nf2 = findNodes(mesh,'region','Face',1)

回答 (1 件)

KSSV
KSSV 2020 年 4 月 30 日
If you nave node numbers nd in hand and point of coorsinates p, you can get the points you want using:
iwant = p(nd,:)
  2 件のコメント
naresh bhimchand
naresh bhimchand 2020 年 4 月 30 日
Thank you very much bro i got it
KSSV
KSSV 2020 年 4 月 30 日
Thnaks is accepting the answer.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by