yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08503
Re: [Question #238406]: List spheres' diameters/radii
Question #238406 on Yade changed:
https://answers.launchpad.net/yade/+question/238406
Status: Open => Answered
Donia Marzougui proposed the following answer:
Hello
The walls that you have in your problem have not a radius, so if you
want to list all the radi of spheres in your simulation, you have to
discard before the identities of the 6 walls (id from 0 to 5) by doing
this:
a=open('radius.txt','w')
for i in O.bodies:
if i.id>5:
a.write('%d %f \n'%(i.id, i.shape.radius))
a.close()
Bests
Donia
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.