yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #27568
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:
If delete "bottomwallclump = O.bodies.clump(bottombodylist)", it works,
but I need them to be a clump.
In an other way to ask, how could I turn these boxes into a clump?
the second script which works:
#Wall constants
WDensity = 3000
WFrictionAngle = 0.001
WPoissonRatio = 0.5
WYoung = 50e9
Mat = O.materials.append(FrictMat(young = WYoung, poisson = WPoissonRatio, frictionAngle = radians(WFrictionAngle), density = WDensity))
#restart
O.load('initial.yade.bz2')
for b in range(6):
O.bodies.erase(b)
axis = (0,0,1)
angle = 0.25*pi
bottombodylist = []
for i in range(100):
box = utils.box((0.0005+0.001*i,.0005,0.003),(0.0005*sqrt(2)/2,0.0005*sqrt(2)/2,0.0005*sqrt(2)/2))
box.mat=O.materials[Mat]
box.state.ori = axis,angle
boxid = O.bodies.append(box)
bottombodylist.append(boxid)
for b in O.bodies:
if isinstance(b.shape,Sphere):
b.shape.color=(0.,0.,1.)
for i in range(-100,-1):
O.bodies[i].shape.color=(1.,0.,1.)
--
You received this question notification because your team yade-users is
an answer contact for Yade.