← Back to team overview

yade-users team mailing list archive

Re: [Question #689407]: Are there any way to stop particles poping out of the box?

 

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

    Status: Open => Answered

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

> Are there any function key to make top box stop when the particles is
tightly packed at the bottom of the box, how?

there are several approaches, depending on your specific definition of what "tightly packed" is, e.g.:
- you know desired packing fraction (the resulting box volume), so you can a priori tell when to stop the top box
- based on unbalancedForce, kinetic energy, whatever.. checking it periodically and stop when the desired state is reached

To make the box step, just assign it zero velocity:
top.state.vel = Vector3.Zero

> Are there any way to stop particles poping out of the box, how?

- increase stiffness of the box (use another material for them)
- or stop it before it pushes particles away (see above)

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.