← Back to team overview

yade-users team mailing list archive

[Question #700297]: How to get particle displacement in VTK?


New question #700297 on Yade:

Hello everyone!
I want to get the displacement of the particles with exportPolyhedra, so I use the following code: vtk.exportPolyhedra(ids='all',what=dict(Displacement='b.state.displ()')). 
But I found that what I get is actually the position of the particles, so how should I get the particle displacement?

P.S.I checked the related post [1], and tried the following statement: O.bodies[1].state.displ().norm(). But I got a scalar and could not view the displacement components in each of the three directions (x, y, z).



You received this question notification because your team yade-users is
an answer contact for Yade.