yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #27563
[Question #701415]: How to generate a clump
New question #701415 on Yade:
https://answers.launchpad.net/yade/+question/701415
Hi,
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.