← Back to team overview

yade-users team mailing list archive

Re: [Question #164545]: Enclosing the particles

 

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

    Status: Open => Answered

Anton Gladky proposed the following answer:
> If it is so, do I have to find the minimum maximum particle points?
If you need to find maximal and minimal particle points, there is a
useful function bodiesHandling.spheresPackDimensions [1]

import bodiesHandling
ids=O.bodies.append(pack.regularOrtho(pack.inCylinder((0,0,6),(0,0,7),20*rad),radius=0.2,gap=0,color=(1,0,0)))
geomParam = bodiesHandling.spheresPackDimensions(ids)
print geomParam

[1] https://www.yade-
dem.org/doc/yade.bodiesHandling.html?highlight=bodieshandling#yade.bodiesHandling.spheresPackDimensions

Anton

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.