← Back to team overview

yade-users team mailing list archive

Re: [Question #197489]: regarding clumps from randomdensepack

 

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

Nishith Agarwal posted a new comment:
Hello,
here is my test script
from yade import pack,timing, ymport, qt, plot

sp=pack.SpherePack()
pred=pack.inHyperboloid(centerBottom=(0,0,-.1),centerTop=(0,0,.1),radius=.05,skirt=.03)
spheres=pack.randomDensePack(pred,spheresInCell=2000,radius=3.5e-3)
c1= O.bodies.appendClumped ([spheres])
sp.makeClumpCloud((0,0,0),(15,15,15),[c1],periodic=False)
sp.toSimulation()

O.bodies.append(utils.wall(position=0,axis=2))

O.engines=[
	ForceResetter(),
	InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
	InteractionLoop(
		[Ig2_Sphere_Sphere_ScGeom(), Ig2_Facet_Sphere_ScGeom()],
		[Ip2_FrictMat_FrictMat_FrictPhys()],
		[Law2_ScGeom_FrictPhys_CundallStrack()],
	),
	GravityEngine(gravity=(0,0,-100)),
	NewtonIntegrator(damping=0),
]
O.dt=.7*utils.PWaveTimeStep()
O.saveTmp()
O.step()

and i get the following error
  File "test4.py", line 6, in <module>
    c1= O.bodies.appendClumped ([spheres])

TypeError: No registered converter was able to produce a C++ rvalue of
type boost::shared_ptr<Body> from this Python object of type list

this is my first time using yade so dont be surprised if i am doing
something horribly wrong :)

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.