← Back to team overview

yade-users team mailing list archive

Re: [Question #685653]: problem about makeClumpCloud()

 

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

    Status: Answered => Open

Rong Zhao is still having a problem:
Thanks, Robert Caulk.  I try the method or function you provide for me.
Here are the codes:

*******************
from yade import utils
O.periodic=True
sp=pack.SpherePack()
c1=pack.SpherePack([((0,0,0),.03333),((.03,0,0),.017),((0,.03,0),.017)])
sp.makeClumpCloud((0,0,0),(2,4,2),[c1],periodic=True,num=500)
sp.toSimulation()
print(utils.aabbExtrema()[-1] - utils.aabbExtrema()[0])  # upper corner coordinates - 
# lower corner coordinates
*******************

When I run the above codes serval times, it returns the different values of the difference between upper corner coordinates and lower corner coordinates each time.
For example, (1.63..., 3.95..., 1.80...), (1.44..., 3.39..., 1.75...) etc.. It is not equal to (2, 4, 2). 

I want to know why the strange behavior occurs.

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