yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #28738
Re: [Question #704153]: Porosity of a particles inside the container
Question #704153 on Yade changed:
https://answers.launchpad.net/yade/+question/704153
Status: Open => Answered
Vasileios Angelidakis proposed the following answer:
Hi Lassakorn,
> I'm very new to this program
Welcome :)
You can calculate the volume of all the spheres in your model using: Vs=getSpheresVolume()
Calculate the volume of your cylinder as: Vtot=height*(pi*radius**2)
and then calculate porosity as: n=(Vtot-Vs)/Vtot
If not the whole container is not filled, you might want to adjust
"height" to your filling height, to get a more meaningful measurement.
Hope this helps, Vasileios
PS: There is a built-in function porosity(), but it only works
considering the bounding box of all the spheres in your model, and not a
cylinder.
--
You received this question notification because your team yade-users is
an answer contact for Yade.