Creating geometry for a donut of particles

edited November 2016 in DualSPHysics_v4.0
Hey there,

I currently have two cylinders of radius 1 and 0.75, and I would like to fill the space between the smaller cylinders outer diameter and the larger cylinder's inner diameter with particles. I cannot use fill void as the cylinder tops are open.

By employing the create cylinder approach, I am only able to generate a ring of particles with no thickness.

Any help would be greatly appreciated.

Thank you

Comments

  • I would try using fillbox. Let's say that the open tops of your cylinders are at z=2 and the center of your cylinders is at (x,y,z) = (0,0,0). Note that I am replacing < with [ and > with ] in the following example so it displays properly...be sure to revert to < and > in your XML:

    [fillbox x="0.85" y="0.0" z="0.5" ]
    [modefill]border|bound[/modefill]
    [point x="-1" y="-1" z="0" /]
    [size x="2" y="2" z="2" /]
    [/fillbox]

    The coordinates in that first line are the seed point. Just make sure the seed point is within the space you are trying to fill. The z coordinate in the "size" line will define the maximum height away from the point of origin (in this case, z=0, defined in the third line) that it fills to. Good luck!
  • That worked perfectly well!

    Thank you for your clear explanation
Sign In or Register to comment.