← Back to team overview

yade-users team mailing list archive

Re: [Question #682883]: calculate mass content of a group of particles through something like label

 

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

Leonard posted a new comment:
Hi xuesong,
I am sorry that I make a wrong answer in #2.
You are right.
-->>list1.append(O.bodies.append(sphere((x1,y1,z1),radius=radius1)))
In this way, the list1 stores the id of the sphere.
The reason why I make the mistake is I did like this:
-->>s1=O.bodies.append(sphere((x1,y1,z1),radius=radius1))
-->>list1=[]
-->>list1.append(s1)
then in this way, the list1 stores the body of sphere.
Thank you again.
Cheers,
Leonard

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