making a facet move to a specific location
I made a cone facet (location (0,0,7) that I want to move into a cylinder full of spheres. I want the cone tip to stop at location (0,0,-1) where I want to measure the normal force exerted on the cone by the spheres. I can't figure out what is wrong with my code as the cone flies through the spheres and doesn't stop at (0,0,-1). Can you please take a look at what i am doing wrong?
from yade import pack, plot, qt
cone = yade.geom.
O.bodies.
cone_id = range(len(cone))
O.bodies.append(
yade.geom.
height=4, orientation=
segmentsNumber=10, wallMask=6, angleRange=None,
closeGap=False, radiusTopInner=
)
sp = pack.SpherePack()
# generate randomly spheres with uniform radius distribution
sp.makeCloud((-1, -1, -2), (1, 1, 4), rMean=0.2, rRelFuzz=0)
# add the sphere pack to the simulation
sp.toSimulation()
O.engines = [
# handle sphere+sphere and facet+sphere collisions
# [Ip2_FrictMat_
# [Law2_ScGeom_
),
# increase velocity to observe if drillbit is moving
# call the checkUnbalanced function (defined below) every 2 seconds
# call the addPlotData function every 200 steps
]
def move():
if O.iter>2040: # at the 500th iteration, start moving the drillbit
O.dt = .8 * PWaveTimeStep()
qt.View()
O.saveTmp()
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: