← Back to team overview

yade-users team mailing list archive

Re: [Question #695989]: Packing with two PSD

 

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

Jan Stránský posted a new comment:
> sp1.toSimulation(color=(0.533, 0.803, 0.780),material=Mat1)
> ...
> sp1.makeCloud((mnx,mny,mnz),(mxx,mxy,mxz),psdSizes=sizes2,psdCumm=passing2,num=51)
> sp1.toSimulation(color=(0.152, 0.368, 0.988),material=Mat2)

do sp1.toSimulation just once, this way you have much more spheres in the packing then desired.
So you still have overlapping spheres and now the situation is even worse :-D

### a MWE showing this
sp = SpherePack([
    ((0,0,0),1),
    ((2,0,0),1),
])
print(len(sp)) # 2
sp.toSimulation()
print(len(O.bodies)) # 2
sp.toSimulation()
print(len(O.bodies)) # 4 !!!
###

cheers
Jan

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