yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #24902
Re: [Question #695126]: Cylinder powder compaction
Question #695126 on Yade changed:
https://answers.launchpad.net/yade/+question/695126
Status: Open => Answered
Karol Brzezinski proposed the following answer:
If you do not trust makeCloud (I guess the number of the particles could
be smaller if there is not enough space in predictor), why don't you
count the spheres in the loop:
count = 0
for b in O.bodies:
if isinstance(b.shape, Sphere):
count +=1
Approximate size of your cloud in the current shape could be obtained using tesselation wrapper [1]:
TW=TesselationWrapper()
TW.triangulate()
TW.computeVolumes()
totVolume = 0
for i in range(count):
totVolume += TW.volume(i)
Don't forget to triangulate and computeVolumes again to 'refresh' the
state (when the shape of your cloud changes).
Karol
[1] https://yade-dem.org/doc/user.html?highlight=tesselation
--
You received this question notification because your team yade-users is
an answer contact for Yade.