Question #682883 on Yade changed:
https://answers.launchpad.net/yade/+question/682883
gaoxuesong posted a new comment:
You are welcome. However, in the way as you said,
###
-->>s1=O.bodies.append(sphere((x1,y1,z1),radius=radius1))
-->>list1=[]
-->>list1.append(s1)
###
list1 also stores the id of
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 t
Question #682883 on Yade changed:
https://answers.launchpad.net/yade/+question/682883
Status: Answered => Solved
Leonard confirmed that the question is solved:
Thanks gaoxuesong, that solved my question.
--
You received this question notification because your team yade-users is
an answer co
Question #682883 on Yade changed:
https://answers.launchpad.net/yade/+question/682883
Leonard posted a new comment:
Hi xuesong,
Many thanks for your solution.
Your approach works very well, while one point should be noted that:
--->>The possible way i think is that using different lists to save th
Question #682883 on Yade changed:
https://answers.launchpad.net/yade/+question/682883
Status: Open => Answered
gaoxuesong proposed the following answer:
Hi,
The possible way i think is that using different lists to save the sphere's
id of different groups and do loop in each list.
## g
New question #682883 on Yade:
https://answers.launchpad.net/yade/+question/682883
Hi,
I'd like to calculate the mass content of a group of spheres, as far as I know,
we can obtain a mass of one sphere by:
O.bodies[id].state.mass
I'd like to ask that if we can obtain the mass of a group of spheres
6 matches
Mail list logo