yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #22604
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:
> Do you have any idea how to stop top box?
See answer #1
>> To make the box step, just assign it zero velocity:
>> top.state.vel = Vector3.Zero
> I want compaction ... at ... stage which volume equal to 1.0*1.0*1.0.
How to do it ?
use e.g. PyRunner:
###
O.engines = [
...
PyRunner(iterPeriod=1,command="stopBoxIfCompacted()")
]
def stopBoxIfCompacted():
area = ...
height = ...
volume = area * height
if volume < 1.0*1.0*1.0:
top.state.vel = Vector3.Zero
O.pause() # ?
###
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.