Creating vectors through patches

3 visualizzazioni (ultimi 30 giorni)
Michael
Michael il 21 Dic 2014
Commentato: Oleg Komarov il 21 Dic 2014
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 Commento
Oleg Komarov
Oleg Komarov il 21 Dic 2014
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.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by