← Back to team overview

yade-users team mailing list archive

Re: [Question #688458]: The mismatach of the sample after using export.text()

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
I guess you are using O.periodic=True. In this case, the particles' positions are virtually wrapped to the cell for both computational and visualization purposes, even they are "exploded" in reality.
Before exporting, do
##
for b in O.bodies:
   b.state.pos = O.cell.wrapPt(b.state.pos)
export.text(...)
##

cheers
Jan

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