Velocity distribution in paraview

Asked by Leonard

Hi,

When I used paraview to look at the distribution of particle velocity, I met a problem that the direction of all the particle velocity (linVelVec) is always the same, like Figure 1 shows (in the attached link[1]).

The way I visualise it in paraview is as follow, which can also be seen in attached Figure 2:
Glyph Type = Arrow
Scalars = linVelLen
Vectors = None
Scale mode = scalar

The vtk files are also attached in the link. The file is exported from a triaxial compression simulation by using VTKRecorder(fileName='fileName',recorders=['all']).

Do you have any comments on why it only shows one direction for all the velocity?

Thanks
Leonard
[1]https://we.tl/t-cRsRDHJJ9c

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Karol Brzezinski
Solved:
Last query:
Last reply:
Revision history for this message
Best Karol Brzezinski (kbrzezinski) said :
#1

Hi,

You need three numbers (a vector) for each particle to show the direction. Scalar is one number and it is good to store a magnitude (length) of the vector.

So you should pass to the "Vectors" velocity as vector.

Best wishes,
Karol

Revision history for this message
Leonard (z2521899293) said :
#2

Hi Karol

Yes! Now I set the paraviw as follow and it works!

Glyph Type = Arrow
Scalars = linVelLen
Vectors = linVelVec

Thanks very much.

Best regards,
Leonard

Revision history for this message
Leonard (z2521899293) said :
#3

Thanks Karol Brzezinski, that solved my question.