How to disable function in PyRunner

Asked by 孙灿

How can I disable the pyrunner function during the simulation?

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Karol Brzezinski (kbrzezinski) said :
#1

Hi,

You can set some lab for a specific PyRunner, and at some point of simulation use this label as reference to your PyRunner, e.g PyRunner(..., label="myEngine")

For example you can disable this engine by setting myEngine.dead = True [1]

Best wishes,
KB
[1] https://yade-dem.org/doc/yade.wrapper.html?highlight=pyrunner#yade.wrapper.PyRunner

Can you help with this problem?

Provide an answer of your own, or ask 孙灿 for more information if necessary.

To post a message you must log in.