Does voxelPorosity work for polyhedra?

Asked by Xue on 2021-06-03

Hi everyone,
  I would like to ask if the voxelPorosity works for specimens composed with polyhedral particles? I have created a cylindrical polyhedral specimen with a radius of 0.15 and a height of 0.9 on the z axis, and then I calculate its porosity using the following command.
  utils.voxelPorosity(resolution=200,start=Vector3(0,0,0),end=Vector3(0.1,0.1,0.5))
  But the output is always 1.
  Is this command valid only for spherical particles? Thank you for your answer!

yours,
xue

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,
currently, voxelPorosity is only for spherical particles [1].
(propbably here should have been a warning for non-spherical bodies)
Cheers
Jan

[1] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/Shop_01.cpp#L423

Revision history for this message
Xue (1q12) said :
#2

Thank you Jan.
  It occurred to me that I could add up the masses of all the particles, and then, from the density of the material, I could calculate the total volume of the particles.
  All the best!

xue

Revision history for this message
Xue (1q12) said :
#3

Thanks Jan Stránský, that solved my question.