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

hi ,
i saved simulation of falling cylinder by spheres in script ( initial.py) and 
now i load it ( O.load('init_config.yade.gz')) in second script(simul.py) , the 
problem now is i can't  add oscillation  and change iterations  to the 
simulation .
 
there's my code :

from yade import plot

O.load('init_config.yade.gz')

# interactions and oscillation
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()]
    ),
    NewtonIntegrator(gravity=(0,0,-9.81),damping=0.3),
    HarmonicMotionEngine(A=[0,0,0.5], f=[0,0,1.0], fi = [0.0,0.0,0.0],ids 
=Cylinder)
 ]
O.dt=utils.PWaveTimeStep()
O.run(17200)


the msg Error is:

  ngines=O.engines+[HarmonicMotionEngine(A=[0,0,1.], f=[0,0,2.6], fi = 
[0.0,0.0,0.0],ids =Cylinder)] 
#+PyRunner(iterPeriod=100,command='plotAddData()')# + 
SnapshotEngine(iterPeriod=1000,fileBase='fallingcylinder_',label='snapshooter')
TypeError: No registered converter was able to produce a C++ rvalue of type 
std::vector<int, std::allocator<int> > from this Python object of type 
Boost.Python.class
 
and the iteration in this part begin 12 000 and finish at 12 200 ( this 
iteration i used it in initial.py) .

thanks in advance . 
thanks in 


-- 
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