← Back to team overview

yade-users team mailing list archive

Re: [Question #660653]: Connect a rod vertically to a horizontal pipe

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Hashir,
have a look at [1]

#### example
from yade import pack
pipe = pack.inCylinder((0,0,0),(10,0,0),3)
rod = pack.inCylinder((5,0,0),(5,0,10),2)
predicate = pipe | rod
packing = pack.randomDensePack(predicate,radius=.3,spheresInCell=200)
O.bodies.append(packing)
####

cheers
Jan

[1] https://yade-dem.org/doc/user.html#boolean-operations-on-predicates

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