yade-users team mailing list archive
Mailing list archive
[Question #678583]: after loading simulation
New question #678583 on Yade:
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
# interactions and oscillation
HarmonicMotionEngine(A=[0,0,0.5], f=[0,0,1.0], fi = [0.0,0.0,0.0],ids =Cylinder)
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 .
You received this question notification because your team yade-users is
an answer contact for Yade.