Question #688164 on Yade changed:
https://answers.launchpad.net/yade/+question/688164
mrhappy gave more information on the question:
I did the following, but it give an error.
def addPlotData():
plot.addData(t=O.time,dis = O.bodies[1].state.displ(),)
O.engines=[
## Resets forces and momenta the act on bodies
ForceResetter(),
#PyRunner(command='myFunction()',iterPeriod=100),
PyRunner(command='addPlotData()',iterPeriod=10),
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom()], # collision geometry
[Ip2_FrictMat_FrictMat_FrictPhys()], # collision "physics"
[Law2_ScGeom_FrictPhys_CundallStrack()] # contact law --
apply forces
),
# Apply gravity force to particles. damping: numerical dissipation of
energy.
NewtonIntegrator(gravity=(0,0,0),damping=0.1),
PyRunner(command='addPlotData()',iterPeriod=20), # call the
addPlotData function every 20 iterations
]
--
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