yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #17016
Re: [Question #666851]: Changing a particular sphere radius in a randomPeriPack ensemble
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.