Write a molecule template for YADE

Asked by Sam

Hey Guys,

I wrote up a Matlab code for generating DEM clumps. This code populates an STL volume with a number of spheres Spheres are non-overlapping and with pre-defined diameters. I would like to add a part to my code to have a molecule template for YADE. It means I would like to get a file after creation (analysis) that I can use it in YADE. Is it feasible? So, if it is possible please let me know how
?

Cheers
Sam

Question information

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

Hi,

Yade proposes https://yade-dem.org/doc/yade.ymport.html#yade.ymport.text to create from a text file a YADE sample made of spheres. It seems this is what you want, thus your Matlab code should just output a file conforming the template expected by this ymport.text() (see the doc)

As a side note though, it seems to me your Matlab code is basically duplicating https://yade-dem.org/doc/yade.pack.html?highlight=makecloud#yade._packSpheres.SpherePack.makeCloud or https://yade-dem.org/doc/yade.pack.html?highlight=makecloud#yade._packSpheres.SpherePack.makeClumpCloud ?

Revision history for this message
Sam (sambahmani) said :
#2

Thanks Jérôme Duriez, that solved my question.