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

Swapnil posted a new comment:
Hi Jan,

Sorry if the question was ambiguous.

To create a cylinder geometry packed with spheres I used the following
commands:

from import yade pack
pred=pack.inCylinder(centerBottom= (0,0,-3),centerTop=(0,0,3),radius=.05)
spheres=pack.randomDensePacl(pred,spheresInCell=2000,radius=0.0025)
O.bodies.append(spheres)

This creates a body (cylinder with spheres). Now, how do I retrieve the
ID of this body for further application ( e.g. loading ). This is what I
am confused about.

When it comes to loading, thinking of applying forces of 1 N along the
three axes I have used the following command:

O.forces.setPermF(0,(1,1,1))

But it displays :  `ForceContainer' object has no attribute 'setPermF'. 
 
I will try to follow the link you send me ( 
https://answers.launchpad.net/yade/+question/578362). 

Thanks.. :)

-- 
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