← Back to team overview

yade-users team mailing list archive

Re: [Question #699279]: How to set two concentric circles with the same center and different radius?

 

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

    Status: Open => Needs information

Karol Brzezinski requested more information:
Hi,

is it all of your code or just a part of it? There is contradiction in
your approach, especially in the second loop. If you iterate over
O.bodies, you assume that you check bodies that are already in the
simulation. On the other hand O.bodies.append is used to add bodies to
the simulation.

I would recommend some learning path, that was helpful in my case. First
just reading documentation on https://yade-dem.org/doc/ (such as
Introduction, Tutorial, DEM Formulation).

If you want to put a sphere in certain position (e.g. (1,2,3)) you could do it this way:
O.bodies.append(sphere((1,2,3), circleRadius))

You can put in a loop, where you pass target positions of subsequent
spheres.

Cheers, 
Karol

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