Remove particle above a certain height

Asked by Kun Zeng

I was wondering if there is a method or input command I can use to remove or erase some particles above a certain height? Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
Last query:
Last reply:
Revision history for this message
Best Jérôme Duriez (jduriez) said :
#1

Hello,

https://yade-dem.org/doc/yade.wrapper.html?highlight=erase#yade.wrapper.BodyContainer.erase is made for you.

You may check the height of a body from the command line with
b.state.pos[2]
assuming the 2-axis is the height-axis, and b is a body (instance)

Revision history for this message
Kun Zeng (zkbread) said :
#2

Thanks Jérôme Duriez, that solved my question.