← Back to team overview

yade-users team mailing list archive

Re: [Question #701413]: How to rotate the box

 

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

xujin posted a new comment:
Hi, Jan

Thanks for your help. The program doesn't work but I can't find out
what's wrong.



#Wall constants
WDensity = 0
WFrictionAngle = 0.0
WPoissonRatio = 0.5
WYoung = 50e9
Mat = O.materials.append(FrictMat(young = WYoung, poisson = WPoissonRatio, frictionAngle = radians(WFrictionAngle), density = WDensity))

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.mat=O.materials[Mat]
    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.