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

Klaus Thoeni posted a new comment:
Hi,

by using execfile not all yade modules are imported correctly.

Regarding your SnapshotEngine, just use it the way you had it before and
make sure the directory you want to write into exists.

O.engines=[
 ForceResetter(),
 InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]), #Axis-aligned 
bounding box
 InteractionLoop(
  [Ig2_Sphere_Sphere_ScGeom6D(),Ig2_Facet_Sphere_ScGeom()], #Interaction 
geometry
  [Ip2_ViscElMat_ViscElMat_ViscElPhys()], #Interaction physics
  [Law2_ScGeom_ViscElPhys_Basic()], #Contact law
 ),
 NewtonIntegrator(gravity=(0,0,-9.81),damping=l_d),
 
qt.SnapshotEngine(fileBase='your-sub-directory/img-',label='snapper',iterPeriod=100),
 # set directory
 PyRunner(iterPeriod=5,command='plotAddData()')
]

In addition, you have to set wait=False when you run it:


O.run(50000,False)

or just use the controller/python interface to run the simulation.

K

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to