← Back to team overview

yade-users team mailing list archive

Re: [Question #688370]: Two concentric cylinders but subtracting out the inner cylinder

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
pack.randomDensePack has predicate as a parameter.
You are using makeCloud, which is only initiated in a "box". You need to filter the packing to "crop" particles you don't want:
###
sp=pack.SpherePack()
sp.makeCloud(...)
predicate = pack.inCylinder(paramsOuter) - pack.inCylinder(paramsInner)
sp = pack.filterSpherePack(predicate,sp,returnSpherePack=True) # [1]
sp.toSimulation()
###

cheers
Jan

[1] https://yade-dem.org/doc/yade.pack.html#yade.pack.filterSpherePack

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