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.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to