Question #701793 on Yade changed: https://answers.launchpad.net/yade/+question/701793
Status: Answered => Open Fereshteh Salehi is still having a problem: Hi Karol Thank you very much for your reply. But I want replace by two different Clumps. ####clump1##### a=[0,.005,.01,.015,.02,.025,.03,.035] b=[0,.005,.01,.015,.02,.025,.03,.035,.04,.045,.05,.055,.06,.065,.07,.075] c=[0,.005] d=[] for i in a: for j in b: for k in c: d.append((i,j,k)) for i in d: O.bodies.appendClumped([sphere((i),.005)]) ######clump2##### clump=O.bodies.appendClumped([sphere((0,0,0),.002),sphere((.002,0,0),.002)]) #####aggregate##### from yade import pack sp=pack.SpherePack() sp.makeCloud((0,0,0),(1,1,1),psdSizes=[.001,.002,.078,.08],psdCumm=[0,.07,.71,1]) sp.toSimulation() ######replace###### for b in O.bodies: if b.shape.radiuse>.078/2: #the particle should be replaced by clump1 else: #the particle should be replaced by clump2 -- 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