← Back to team overview

yade-users team mailing list archive

Re: [Question #704099]: Packing of Medium Density

 

Question #704099 on Yade changed:
https://answers.launchpad.net/yade/+question/704099

Jan Stránský posted a new comment:
> packingFraction = sum(4/3.*pi*pow(b.shape.radius,3) for b in O.bodies)
/ boxVolume

with credit to Vasileios' answer at [3], it can be simplified to
packingFraction = getSpheresVolume() / boxVolume
using getSpheresVolume [4] (I did not know about the function).

Cheers
Jan

[3] https://answers.launchpad.net/yade/+question/704153
[4] https://yade-dem.org/doc/yade.utils.html#yade._utils.getSpheresVolume

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.