← Back to team overview

yade-dev team mailing list archive

[Bug 550912] Re: RegularHex Pack, again

 

(The first report was about syntax error in source, so this is really a
different issue. Anyway)

a is side of the equilateral triangle. In the xy plane, spheres are laid
in rows parallel with x. Distance of these rows is hy=a*sqrt(3)/2. In
the z direction, the planes need to assume distance equal to height of
equilateral terahedron with side a. This height is hz=a*sqrt(6)/3. This
is also what is in the code. Did I overlook something?

-- 
RegularHex Pack, again
https://bugs.launchpad.net/bugs/550912
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: Invalid

Bug description:
Hi Vaclav,
in file pack.py for RegularHex pack in bzr2112
I think  y+= hy/2  must be  y+= hy/3 
 also,when run it there is an error:

File "/home/moradi/YADE-trunk/YADE/lib/yade-bzr2112/py/yade/pack.py", line 206
     <<<<<<< TREE
      ^
 SyntaxError: invalid syntax

in file there are these lines:
<<<<<<< TREE
		if k%2!=0: x+=a/2.; y+=h/3.
=======
		if k%2!=0: x+=a/2.; y+=hy/2.
>>>>>>> MERGE-SOURCE

thank you
Nasibeh Moradi





References