Reducing spheres radius

Asked by Latifa El Ghezal

Hi to all,
Aiming to simulate soil shrinkage, I would like to know if it is possible to reduce sphere radius during simulation ?

Best Regards

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Latifa El Ghezal
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,

it is possible and very easy:

b = O.bodies[someID]
b.shape.radius = whatever # directly assign a value
b.shape.radius *= 0.9 # change the current value to be multiplied by 0.9

note that mass and inertia are not changed

cheers
Jan

2014-09-16 10:53 GMT+02:00 Latifa El Ghezal <
<email address hidden>>:

> New question #254578 on Yade:
> https://answers.launchpad.net/yade/+question/254578
>
> Hi to all,
> Aiming to simulate soil shrinkage, I would like to know if it is possible
> to reduce sphere radius during simulation ?
>
> Best Regards
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#2

Hello,
growParticle() or growParticles() with a multiplier less than 1 will do what you need [1].
It will update inertia optionally, which you maybe don't want if you have mass conservation.

@Jan,
Your suggestion will not work. The interactions keep a copy of radii, thus decreasing the radius directly will have strictly no effect on an initialy stable packing.

Bruno

[1] https://yade-dem.org/doc/yade.utils.html#yade._utils.growParticle

Revision history for this message
Latifa El Ghezal (latifa-elghezal) said :
#3

Great Thanks to you.

Revision history for this message
Jan Stránský (honzik) said :
#4

Hi Bruno,

>
> @Jan,
> Your suggestion will not work. The interactions keep a copy of radii, thus
> decreasing the radius directly will have strictly no effect on an initialy
> stable packing.
>
> <https://help.launchpad.net/ListHelp>
>

thanks for explanation :-) I didn't know that..
Jan