← Back to team overview

yade-users team mailing list archive

Re: [Question #706540]: Trouble in generating sphere packing

 

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

    Status: Solved => Open

Huan is still having a problem:

Thanks Karol, that solve my problem.

# set color for sphere
for body in O.bodies:
   if not isinstance(body.shape, Sphere):
       continue
   if body.shape.radius == rMean1: #SP1
       body.shape.color = (0,0,1) #blue
   if body.shape.radius == rMean2: #SP1
       body.shape.color = (1,0,0) #red
   if body.shape.radius == rMean3: #SP2
       body.shape.color = (0,1,0) #green
   if body.shape.radius == rMean4: #SP3
       body.shape.color = (1,1,1) #white
I try this to create color for the spheres, but it doesn't seems to work. Any idea?

Also, I would like to use oedometric test on the simulation. My question
is how would I know the load that I should use?

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