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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

> I want to then be able to change a particular sphere radius

for b in O.bodies:
   b.shape.radius = whatever # there is a function also modifying mass, but I 
cannot find it just now

> let the system "attract" into its centroid to recreate a dense packing
with the newly sized particles.

maybe [1]? (never used it myself..). Before using such approach, probably you 
would need something like
for b in O.bodies:
   b.state.pos = O.cell.wrap(b.state.pos)

cheers
Jan

[1] https://yade-
dem.org/doc/yade.wrapper.html#yade.wrapper.CentralGravityEngine

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