← Back to team overview

yade-users team mailing list archive

Re: [Question #701415]: How to generate a clump

 

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

xujin posted a new comment:
just run the following code, it works.


axis = (0,0,1)
angle = 0.25*pi
topbodylist = []
for i in range(10):
    box = utils.box((1+2*i,1,1),(sqrt(2)/2,sqrt(2)/2,sqrt(2)/2))
    box.state.ori = axis,angle
    boxid = O.bodies.append(box)
    topbodylist.append(boxid)
topwallclump = O.bodies.clump(topbodylist)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.