how to view the size of randomly generated padticles

Asked by lip on 2019-02-26

hello
i want to know how to view the size of randomly generated padticles, such as paticle created by function polyhedra_fillbox.
i would apprecite it if you can help me

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2019-02-26
Last reply:
2019-02-26
Jan Stránský (honzik) said : #1

Hello,
please specify more "view the size". View in a GUI? get the dimensions as a number?
cheers
Jan

lip (mr.xie) said : #2

i want to know the number

Jan Stránský (honzik) said : #3

Then it depends on the definition of "size" and the usecase.
In general, for polyhedral particles, you have access to the coordinates of vertices as b.shape.v [1] and other data [2] and can evaluate size in many different ways.
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Polyhedra.v
[2]https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Polyhedra

Can you help with this problem?

Provide an answer of your own, or ask lip for more information if necessary.

To post a message you must log in.