← Back to team overview

yade-users team mailing list archive

Re: [Question #402989]: exporting the file of properties of spheres in simulation

 

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

    Status: Open => Answered

Bruno Chareyre proposed the following answer:
There are plenty ways to do that, yes.
I suggest to first clarify which data you need, and for instance to write a loop to print it in the terminal:
for b in O.bodies:
    print b.state.pos[0], b.state.pos[1], b.state.pos[2], b.material.friction, etc.

When it has the shape you want you do exactly the same but writing to a file.
I hope it helps.

Bruno

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