← Back to team overview

yade-users team mailing list archive

Re: [Question #702665]: How to calculate the height of particle accumulation?

 

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

Karol Brzezinski proposed the following answer:
Hi,

Yes, first you generate facets, next particles. I only meant that
facetbox() function creates facets, not particles (as stated in the
first post).

Referring to your question, this is how you can obtain the height of spherical particle packing:
#################
O.bodies.append(geom.facetBox((0.05, 3, 4), (0.1, 3, 4), wallMask=63))
sp = pack.SpherePack()
sp.makeCloud(Vector3(0.05,0,0),Vector3(0.05,6,8), rMean=0.05, rRelFuzz=0)
sp.toSimulation()
O.engines[4].gravity = (0,0,-10)
O.run(3000,True)

(xmin,ymin,zmin),(xmax,ymax,zmax) = aabbExtrema() # you can use aabbDim() instead in those two lines if you only need height
height = zmax-zmin
print("Height is ",height) 
################

Cheers,
Karol

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