yade-users team mailing list archive
Mailing list archive
Re: [Question #689434]: How to generate many polyhedra randomly without specific data in Potential Blocks code？
Question #689434 on Yade changed:
Status: Open => Answered
Vasileios Angelidakis proposed the following answer:
Currently, I have not written a dedicated function to do something like
this for the Potential Blocks. What you need to define a particle using
this code, are mainly the equations of the planes corresponding to the
particle faces, i.e. the coefficients "a,b,c,d". And then, you can
choose an appropriate radius "r", which will be used in the calculation
of the contact normals when a contact occurs.
To calculate the plane coefficients a,b,c,d, you need to have a mesh of the particle surface (vertices and connectivity), which this code currently does not give you. You can though use a different approach to calculate such a mesh, and then transform it into a Potential Block. E.g, the polyhedra code has a very nice function to generate random polyhedra with controlled size  and it also gives you the connectivity of the vertices making the particle surface .
You might find  helpful.
All the best, Vasileios
You received this question notification because your team yade-users is
an answer contact for Yade.