Creating a Pack of packages

Asked by Luis Barbosa

Hello everyone,

There is in YADE a bult in function which creates a dense pack (randomDensePack).
I'm using this function to create a pack, let's call it pack 1, with some specific contacts parameters (parameters 1).

My question is: Is there already some function capable of create another dense pack (pack 2) composed by many pack 1? Considering that the contact parameters between these pack 1 is different from parameters 1 (parameters 2). In other words, pack 2 keeps parameters 1 inside pack 1, but uses parameters 2 in the interaction.

Thank you for your attention.
Luis

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Luis Barbosa
Solved:
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hi,

I do not think there is any existing function that would do exactly what you want (obviously, I do not know 100% of the code, though..).
Anyway, it should be possible for you to perform yourself the trick, changing e.g. manually the "interaction physics" parameters for the interactions you want.
The id of your particles will probably obey some pattern in your case (from 0 to 99 in the first pack, then 100 to 199 in the 2d pack..) that should help identify the interactions to handle specifically.

PS: this being said, I'm not sure I completely understood your question...

Revision history for this message
Luis Barbosa (luis-pires-b) said :
#2

Hi Jérôme,

I have already done this trick. It's not that beautiful, but it works.

However I'm creating many pack1, one by one by hand and identifying spheres of each pack.
Is it possible create pack1 in a separate simulation and load many pack1 at once into another simulation to create pack2? similar a ''cloud'' of many pack1.

This will help me to increase the number of pack1 in pack2.

Thanks,
Luis

Revision history for this message
Jérôme Duriez (jduriez) said :
#3

More or less related to your question (?) and for switching back and forth between different simulations, the "Omega" class (i.e. your Yade simulation) gives the possibility to define distinct "sub-simulations" through the "Scene" concepts. See all the Omega functions including "Scene" in their name, e.g.
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Omega.switchToScene

Revision history for this message
Luis Barbosa (luis-pires-b) said :
#4

Ok Jérôme,

Let me study more and perform some attempts.

Thanks for now.

Luis