← Back to team overview

yade-users team mailing list archive

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

 

Question #700297 on Yade changed:
https://answers.launchpad.net/yade/+question/700297

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

please provide a MWE [1].
state.displ() is computed simply as state.pos - state.refPos
>From the description it seems, that the refPos is (0,0,0) for all particles.
Try
###
for b in O.bodies:
    b.state.refPos = b.state.pos
###
just before the simulation starts.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

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