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

    Status: Open => Answered

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

please provide a MWE [1].
"I use b.state.pos" is too generic and ambiguous.

> I use b.state.pos to get the coordinates of the particles

by b.state.pos, you get the coordinates of one single particle denoted
as "b" (not particles)

> is the coordinate order of the console output random?

please define "random" and "the output".
You can make it random, but it would need effort from the user's side.
"Normally", e.g. using "for b in O.bodies: print(b.state.pos)", you get always 
the same order.

For the "match", I guess b.id is the information you are looking for? Something 
like:
for b in O.bodies: print(b.id, b.state.pos)

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     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to