← Back to team overview

yade-users team mailing list archive

Re: [Question #226679]: Clump with wall

 

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

    Status: Open => Answered

Christian Jakob proposed the following answer:
Hi,

In your script you create walls and new engines in each step, since
O.iter > 500

if O.iter<500: return
fIDSIII=O.bodies.append(utils.wall(max([b.state.pos[2]+b.shape.radius+0.020 for b in O.bodies if isinstance(b.shape,Sphere)]),axis=2,sense=-1,material=Mat))
...
O.engines=O.engines+[PyRunner(command='addPlotData()',iterPeriod=1000)]

I think this is not what you wanted.

Try to call this commands once, not every step ...

Regards,

Christian

P.s. I did not get the NameError ... typo?

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.