← Back to team overview

yade-users team mailing list archive

[Question #566006]: A very simple question confussing me ...

 

New question #566006 on Yade:
https://answers.launchpad.net/yade/+question/566006

I'm new to Yade and just getting started to learn it...
So when I was trying to run the examples with my hand typing codes like "gravity deposition" (https://yade-dem.org/doc/tutorial-examples.html#gravity-deposition), a error occurred which says :

"NewtonIntegrator(gravity=(0,0,-9.81),damping=0.2)

TypeError: list indices must be integers, not tuple"
I compared the origin examples and found nothing different. here is my typing codes:
#practice 2.
from yade import pack,plot
O.bodies.append(geom.facetBox((.5,.5,.5),(.5,.5,.5),wallMask=31))
sp=pack.SpherePack()
sp.makeCloud((0,0,0),(1,1,1),rMean=.05,rRelFuzz=.5)
sp.toSimulation()
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_CundallStracks()]
)
NewtonIntegrator(gravity=(0,0,-9.81),damping=0.2)
]
O.dt=.5*PWaveTimeStep()




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