← Back to team overview

yade-users team mailing list archive

Re: [Question #258947]: particle packings; regular & random

 

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

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
1: yade has some predefined predicates, there is no need to use gts
surfaces. For example, for a cylinder see [1]. You can find an example
here [2]. You have as well some other options like inSphere,
inParallelepiped etc. You can do as well some simple operations with
predicates in order to create more complicated volumes, see [3].

2: not sure what exactly you want to do but by using the same predicate you will get overlaps. The packing algorithm generally just creates bodies and does not check if there are already other bodies. You would have to define predicates for all your clumps and subtract them from your cylinder predicate. Other option could be to check if particles overlap and delete them or you could first create the hexagonal packing and then replace some of the spheres by your clumps.
 
HTH
Klaus

[1] https://yade-dem.org/doc/yade.pack.html?highlight=incylinder#yade._packPredicates.inCylinder
[2] https://github.com/yade/trunk/blob/master/examples/packs/packs.py
[3] https://github.com/yade/trunk/blob/master/examples/tunnel-pack.py

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.