Creating vectors through patches

조회 수: 1 (최근 30일)
Michael
Michael 2014년 12월 21일
댓글: Oleg Komarov 2014년 12월 21일
Hi everybody.
I have 1 or like 2 problems in Matlab, I cannot solve.
_____________
1) I've got a part from Abaqus, "imported" into Matlab, with some colored patches. Here 2 examples of what I got:
(All but the mesh was made in MS paint, but I think it's enough to explain my problem here. Of course there are smooth transition within the colors, labeled with values between 0 (dark blue) and 1 (dark red). The meaning of the colors doesent matter then, they just represent 0, 0.1, 0.3451 ... , 1.). Each node is labeled by a number, I know the position of each node of the mesh in X Y Z, and I know each value between 0 and 1 for each node.
Now I want to create a vector or vector field in these parts. These vectors should run from one patch to another, starting and ending outside or on the edge of the part / mesh. It would be nice, if they prefer running through parts of the patches in the blueish regions (draw near parts of the value 0). Here again 2 pictures that hopefully explain what I mean:
I'm quite new to Matlab and learned it by myself. So I haven't any idea how to solve this problem. I hope you can give me at least some advices or ideas.
___________________
2) When the first problem is solved, I need to know which nodes are touched by the vectors, so I can "select" them. Do you have any idea?
Greetings
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2014년 12월 21일
A few suggestions: ask one question at a time, provide some sample input and what you have attempted so far. Now, for the problem you can find the centroids of your patches and fit a polynomial through it. However, it is not clear what are the rules that determine which patches will be linked by a vector and which should not.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by