フィルターのクリア

Calculate radial displacement from X,Y,Z displacements of a cylinder node

6 ビュー (過去 30 日間)
Ash Ahamed
Ash Ahamed 2020 年 2 月 12 日
コメント済み: darova 2020 年 2 月 13 日
Hello,
How do I calculate the radial displacement of a node on a cylinder from it's XYZ displacement. Center coordinate system sometimes is at center of the cylinder sometimes it's not. because I have more than one cylinder. I tried trignometry and the values does not make any sense. Below is the code I used. M\aybe what I need to calculate is the distance shown using the yellow line.
I have attached a sketch for reference. What am I missing here?
cylinder_displacement.png
r=sqrt(bsxfun(@plus, bsxfun(@plus,x.^2,y.^2),z.^2 ));
  5 件のコメント
Ash Ahamed
Ash Ahamed 2020 年 2 月 12 日
I can calculate D using trignometry but it is not in the same plane as the node. let me try to update the image with more explanation.
Ash Ahamed
Ash Ahamed 2020 年 2 月 12 日
What I would want to calculate with be the distance showed by yellow line.
cylinder_displacement.png

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

採用された回答

darova
darova 2020 年 2 月 12 日
THe solution
x1 = x + x_;
y1 = y + y_;
dr = sqrt(x1.^2+y1.^2) - r;
  2 件のコメント
Ash Ahamed
Ash Ahamed 2020 年 2 月 12 日
Thanks
in this case wouldn't the dr be in a new plane not the plane of the original node?
darova
darova 2020 年 2 月 13 日
No. Radial displacement is always in XY plane

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

その他の回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by