← Back to team overview

yade-users team mailing list archive

Re: About adding a surcharge (either box or force) during simulation

 

Oh yes! Please, Vaçlav. Keep on writing small python examples when you 
have a chance. :)

Bruno


>
> [create simulation]
> o=Omega()
> o.run(5000) # run 5000 iterations
> boxId=o.bodies.append(yade.utils.box([cx,cy,cz],[extx,exty,extz],density=...,...))
> # create box, add it to bodies, save body id
> # put ForceEngine after the 5th engine (for example)
> o.engines=o.engines[:5]+DeusExMachina("ForceEngine",{'force'=[0,0,-100],'subscribedBodies':[boxId]})+o.engines[5:]
> o.run() #continue simulation
>
> But currently there is no 3d view in PythonUI, which is a considerable
> problem :-|. You could overcome this by calling yade.utils.runInQtGui()
> one the engine is added (instead of o.run()). That saves simulation to
> file and loads it in the GUI.
>
> Regards, Vaclav
> _______________________________________________
> Yade-users mailing list
> Yade-users@xxxxxxxxxxxxxxxx
> https://lists.berlios.de/mailman/listinfo/yade-users
>
>   


-- 
 
_______________
Chareyre Bruno
Maitre de conference

Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________

_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users



References