yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #19839
Re: [Question #681160]: How to change the refPos of spheres to current position of consolidation stage, and not particle generation stage, to extract vtk files for plotting of displacement field in Paraview
Question #681160 on Yade changed:
https://answers.launchpad.net/yade/+question/681160
Status: Open => Answered
Jan Stránský proposed the following answer:
> b.state.refPos= b.state.pos # to change the refPos of spheres from
particle generation stage to current position of consolidation stage
is this the actual code? if so, it just modifies refPos of "b", one body I guess. Try:
###
for b in O.bodies:
b.state.refPos = b.state.pos
###
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.