← Back to team overview

yade-dev team mailing list archive

Re: Bugs in Cell

 

> I have added
> 
> for i in range(len(O.bodies)):
> 	O.bodies[i].state.pos = O.cell.trsf*O.bodies[i].state.pos
> 
> which located in proper place seems to work well.

Hi Jan,

I added SpherePack.toSimulation function, which will properly set
periodic cell including possible rotation (and rotate the spheres as
well):

https://www.yade-dem.org/sphinx/yade.pack.html#yade.pack.SpherePack_toSimulation

(should be
https://www.yade-dem.org/sphinx/yade.pack.html#yade._packSpheres.SpherePack.toSimulation, but that is broken for some reason)

HTH, v.




References