visualization vector of ratation

Submitted by jikra on Tue, 08/09/2011 - 16:56

Hi,
first i'm sorry for my bad english.

So my problem is:

I have an stl file(it's cylinder). I imported it to liggghts and i get it rotation(it's OK). In paraView i see ratation cylinder, but i can't show some vector of rotation. What i must add to source code for it.

many thanks.

Jikra

ckloss_ | Tue, 08/09/2011 - 22:22

Hi Jikra,

I would use the fix mesh/gran command with the "rotation" option - you can then use the dump mesh/gran/VTK command with keyword "vel", that would dump you the surface velocity. You can directly derrive omega from that sureface velocity
If you want to have omega dumped as well, you would need to change stl_tri.h/cpp and dump_mesh_gran.h/cpp

Cheers,
Christoph

jikra | Thu, 08/18/2011 - 12:55

hi,
i try import stl by:
fix wall all mesh/gran wall.stl 1 1.0 0. 0. 0. 0. 0. 0.
give it some move
fix moveStl all move/mesh/gran linear .2 1. 0. wall
and dump with mesh/gran/VTK and "vel" keyword
dump stldump all mesh/gran/VTK 200 post/myDump*.vtk vel

so in paraview i can color wall by v(vel) but when i add glyph i see only 4 arrows (one in each corner from the wall). And i can't use vel for direction and velocity these arrows.

thanks,
jikra