Question #197489 on Yade changed: https://answers.launchpad.net/yade/+question/197489
Jan Stránský proposed the following answer: Hello Nishith, the first solution is to use c1= O.bodies.appendClumped (spheres) # without braces around speheres then you will have problems on the next line, as c1 is tuple of int and list of ints.. I have never used makeClumpCloud, so I dont know how to fix it, hopefully somebody else will help you :-) Jan On 21.5.2012 20:20, Nishith Agarwal wrote: > from yade import pack,timing, ymport, qt, plot > > sp=pack.SpherePack() > pred=pack.inHyperboloid(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05,skirt=.03) > spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=3.5e-3) > c1= O.bodies.appendClumped ([spheres]) > sp.makeClumpCloud((0,0,0),(15,15,15),[c1],periodic=False) > sp.toSimulation() > > O.bodies.append(utils.wall(position=0,axis=2)) > > O.engines=[ > ForceResetter(), > InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]), > InteractionLoop( > [Ig2_Sphere_Sphere_ScGeom(), Ig2_Facet_Sphere_ScGeom()], > [Ip2_FrictMat_FrictMat_FrictPhys()], > [Law2_ScGeom_FrictPhys_CundallStrack()], > ), > GravityEngine(gravity=(0,0,-100)), > NewtonIntegrator(damping=0), > ] > O.dt=.7*utils.PWaveTimeStep() > O.saveTmp() > O.step() > > and i get the following error > File "test4.py", line 6, in<module> > c1= O.bodies.appendClumped ([spheres]) -- You received this question notification because you are a member of yade-users, which is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

