How to arrainge data to use streamline?
6 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have data exported from a finite element software that I want to use in MATLAB to plot streamlines. The format is
xc,yc,zc,vx,vy,vz
where xc, yc and zc are (M-by-1) vectors of the coordinates of the nodes. vx, vy and vz are the components of the velocity at those coordinate locations.
The help for streamline says the X, Y and Z inputs must be monotonic, but my vectors are not sorted. I think if I sort them to satisfy the monotonic condition then they will not match the vx, vy and vz sorting, and since it is very unlikely they will all sort the same way, there is no way to keep them meatched to the vx, vy and vz.
How can I get my data in a form that streamline can use?
Thanks
0 件のコメント
回答 (3 件)
KSSV
2020 年 2 月 13 日
I guess what you have is unstructured FEM mesh data. YOu need to convert it to grided data. You can do inteprolation using gridddata. Refer this link:
0 件のコメント
David Winthrop
2020 年 2 月 13 日
編集済み: David Winthrop
2020 年 2 月 13 日
1 件のコメント
KSSV
2020 年 2 月 15 日
Increase the number in linspace. You have taken only 50. Keep increasing it and check.
David Winthrop
2020 年 2 月 14 日
1 件のコメント
MS
2020 年 5 月 11 日
Hi David,
I am facing the same issue as you. My streamline plots also not picking up the recirculation zone. Would you able to solve your problem in the streamline plot. Please let me know how you solved the issue.
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
