Two concentric cylinders but subtracting out the inner cylinder
I am still having trouble filling in the outer cylinder while leaving inner cylinder empty. I searched the Yade book for usage in predicates but I do not understand how to implement this in my code (specifically Pages 50 and 51 using Boolean algebra to deduct the inner volume from the outer volume leaving an image similar to Image 4.4 but instead of a cylinder-shaped void in a box, I want to have a cylinder -shaped void inside a larger cylinder. I am pretty basic at this and any direction would be greatly appreciated!
Here is the code they gave in the Yade manual...
pred=pack.
spheres=
Now the problem I have is how to correctly format my Cylinder_In and Cylinder_Out to allow for the above code to work?
from yade import pack, qt, export
cylinder_
cylinder_
sp=pack.
#These are taken from another code so I commented them out for now...
#diameter=
#cum=[0.
sp.makeCloud(
sp.toSimulation()
yade.qt.
yade.qt.View()
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
NewtonIntegrat
PyRunner(
]
O.dt=.5*
#I commented out the Harmonic Motion Engine at the moment
def iterations():
O.stopAtIter
export.
Thank you in advance!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Kevin for more information if necessary.