yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #27066
Re: [Question #700369]: Circular setting
Question #700369 on Yade changed:
https://answers.launchpad.net/yade/+question/700369
Status: Open => Answered
Jan Stránský proposed the following answer:
Something like this?
###
# input
R = 10
n = 48
# conputed values
c = 2*pi*R
r = c / 2 / float(n)
da = 2*pi / float(n)
# disks
disks = []
for i in range(n):
a = i*da
x = R*cos(a)
y = R*sin(a)
disk = sphere((x,y,0),r)
disks.append(disk)
O.bodies.append(disks)
###
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.